From: norly Date: Sat, 23 Feb 2013 15:45:17 +0000 (+0000) Subject: Move headers for ELF-based operations together X-Git-Url: https://git.enpas.org/?p=centaur.git;a=commitdiff_plain;h=c5c86efb59ea91a64543b2b50ee1bebf6aa8a6e7 Move headers for ELF-based operations together --- diff --git a/include/libelfu/analysis.h b/include/libelfu/analysis.h deleted file mode 100644 index f3d4ddb..0000000 --- a/include/libelfu/analysis.h +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef __LIBELFU_ANALYSIS_H_ -#define __LIBELFU_ANALYSIS_H_ - -#include -#include - -#include - -int elfu_segmentContainsSection(GElf_Phdr *phdr, GElf_Shdr *shdr); - -#endif diff --git a/include/libelfu/elfops.h b/include/libelfu/elfops.h new file mode 100644 index 0000000..a57069d --- /dev/null +++ b/include/libelfu/elfops.h @@ -0,0 +1,20 @@ +#ifndef __LIBELFU_ELFOPS_H_ +#define __LIBELFU_ELFOPS_H_ + +#include +#include + +#include + +size_t elfu_scnSizeFile(const GElf_Shdr *shdr); + +char* elfu_sectionName(Elf *e, Elf_Scn *scn); +Elf_Scn* elfu_sectionByName(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); + +void elfu_fixupPhdrSelfRef(Elf *e); + +#endif diff --git a/include/libelfu/fixup.h b/include/libelfu/fixup.h deleted file mode 100644 index 6fb6620..0000000 --- a/include/libelfu/fixup.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef __LIBELFU_FIXUP_H__ -#define __LIBELFU_FIXUP_H__ - -#include -#include - -void elfu_fixupPhdrSelfRef(Elf *e); - -#endif diff --git a/include/libelfu/libelfu.h b/include/libelfu/libelfu.h index 271b0ce..961235f 100644 --- a/include/libelfu/libelfu.h +++ b/include/libelfu/libelfu.h @@ -4,9 +4,7 @@ #include -#include -#include -#include +#include #include diff --git a/include/libelfu/lookup.h b/include/libelfu/lookup.h deleted file mode 100644 index 2506512..0000000 --- a/include/libelfu/lookup.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef __LIBELFU_LOOKUP_H_ -#define __LIBELFU_LOOKUP_H_ - -#include -#include - -#include - -char* elfu_sectionName(Elf *e, Elf_Scn *scn); - -Elf_Scn* elfu_sectionByName(Elf *e, char *name); - -Elf_Scn* elfu_firstSectionInSegment(Elf *e, GElf_Phdr *phdr); -Elf_Scn* elfu_lastSectionInSegment(Elf *e, GElf_Phdr *phdr); - -size_t elfu_scnSizeFile(const GElf_Shdr *shdr); - -#endif