diff options
Diffstat (limited to 'include/libelfu/lookup.h')
-rw-r--r-- | include/libelfu/lookup.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/libelfu/lookup.h b/include/libelfu/lookup.h new file mode 100644 index 0000000..2cca5df --- /dev/null +++ b/include/libelfu/lookup.h @@ -0,0 +1,14 @@ +#ifndef __LIBELFU_LOOKUP_H_ +#define __LIBELFU_LOOKUP_H_ + +#include <libelf.h> +#include <gelf.h> + +#include <libelfu/types.h> + +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); + +#endif |