Move headers for ELF-based operations together
[centaur.git] / include / libelfu / elfops.h
1 #ifndef __LIBELFU_ELFOPS_H_
2 #define __LIBELFU_ELFOPS_H_
3
4 #include <libelf.h>
5 #include <gelf.h>
6
7 #include <libelfu/types.h>
8
9 size_t elfu_scnSizeFile(const GElf_Shdr *shdr);
10
11 char* elfu_sectionName(Elf *e, Elf_Scn *scn);
12 Elf_Scn* elfu_sectionByName(Elf *e, char *name);
13
14 int elfu_segmentContainsSection(GElf_Phdr *phdr, GElf_Shdr *shdr);
15 Elf_Scn* elfu_firstSectionInSegment(Elf *e, GElf_Phdr *phdr);
16 Elf_Scn* elfu_lastSectionInSegment(Elf *e, GElf_Phdr *phdr);
17
18 void elfu_fixupPhdrSelfRef(Elf *e);
19
20 #endif