diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libelfu/elfops.h | 13 | ||||
-rw-r--r-- | include/libelfu/generic.h | 9 | ||||
-rw-r--r-- | include/libelfu/libelfu.h | 1 |
3 files changed, 16 insertions, 7 deletions
diff --git a/include/libelfu/elfops.h b/include/libelfu/elfops.h index a57069d..25575a1 100644 --- a/include/libelfu/elfops.h +++ b/include/libelfu/elfops.h @@ -6,15 +6,14 @@ #include <libelfu/types.h> -size_t elfu_scnSizeFile(const GElf_Shdr *shdr); -char* elfu_sectionName(Elf *e, Elf_Scn *scn); -Elf_Scn* elfu_sectionByName(Elf *e, char *name); + char* elfu_eScnName(Elf *e, Elf_Scn *scn); +Elf_Scn* elfu_eScnByName(Elf *e, char *name); -int elfu_segmentContainsSection(GElf_Phdr *phdr, GElf_Shdr *shdr); -Elf_Scn* elfu_firstSectionInSegment(Elf *e, GElf_Phdr *phdr); -Elf_Scn* elfu_lastSectionInSegment(Elf *e, GElf_Phdr *phdr); + int elfu_ePhdrContainsScn(GElf_Phdr *phdr, GElf_Shdr *shdr); +Elf_Scn* elfu_eScnFirstInSegment(Elf *e, GElf_Phdr *phdr); +Elf_Scn* elfu_eScnLastInSegment(Elf *e, GElf_Phdr *phdr); -void elfu_fixupPhdrSelfRef(Elf *e); +void elfu_ePhdrFixupSelfRef(Elf *e); #endif diff --git a/include/libelfu/generic.h b/include/libelfu/generic.h new file mode 100644 index 0000000..9d9aefb --- /dev/null +++ b/include/libelfu/generic.h @@ -0,0 +1,9 @@ +#ifndef __LIBELFU_GENERIC_H__ +#define __LIBELFU_GENERIC_H__ + +#include <gelf.h> + + +size_t elfu_gScnSizeFile(const GElf_Shdr *shdr); + +#endif diff --git a/include/libelfu/libelfu.h b/include/libelfu/libelfu.h index 961235f..3c62aad 100644 --- a/include/libelfu/libelfu.h +++ b/include/libelfu/libelfu.h @@ -4,6 +4,7 @@ #include <libelfu/types.h> +#include <libelfu/generic.h> #include <libelfu/elfops.h> #include <libelfu/model.h> |