Move ELF-related files together
[centaur.git] / include / libelfu / lookup.h
1 #ifndef __LIBELFU_LOOKUP_H_
2 #define __LIBELFU_LOOKUP_H_
3
4 #include <libelf.h>
5 #include <gelf.h>
6
7 #include <libelfu/types.h>
8
9 char* elfu_sectionName(Elf *e, Elf_Scn *scn);
10
11 Elf_Scn* elfu_sectionByName(Elf *e, char *name);
12
13 Elf_Scn* elfu_firstSectionInSegment(Elf *e, GElf_Phdr *phdr);
14 Elf_Scn* elfu_lastSectionInSegment(Elf *e, GElf_Phdr *phdr);
15
16 size_t elfu_scnSizeFile(const GElf_Shdr *shdr);
17
18 #endif