diff options
author | norly <ny-git@enpas.org> | 2013-02-23 15:59:12 +0000 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2013-02-23 15:59:12 +0000 |
commit | 6e4cbafe0876ff14ff03a14ab80951167ef67e06 (patch) | |
tree | 6e8ef066e67b841ef5c18ece44d7543958db4e02 /include | |
parent | c4d9a1aaf7c25e45adcaaebc970429f2c61bf6e9 (diff) |
Clean up ELF-related files and functions
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> |