1 #ifndef __LIBELFU_ELFOPS_H_
2 #define __LIBELFU_ELFOPS_H_
7 #include <libelfu/types.h>
9 size_t elfu_scnSizeFile(const GElf_Shdr *shdr);
11 char* elfu_sectionName(Elf *e, Elf_Scn *scn);
12 Elf_Scn* elfu_sectionByName(Elf *e, char *name);
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);
18 void elfu_fixupPhdrSelfRef(Elf *e);