Print ELF header/segments/sections
[centaur.git] / include / libelfu / lookup.h
1 #ifndef __LIBELFU_LOOKUP_H_
2 #define __LIBELFU_LOOKUP_H_
3
4 #include <libelf.h>
5 #include <gelf.h>
6
7 #include <libelfu/types.h>
8
9 char* elfu_sectionName(Elf *e, Elf_Scn *scn);
10 Elf_Scn* elfu_sectionByName(Elf *e, char *name);
11 Elf_Scn* elfu_firstSectionInSegment(Elf *e, GElf_Phdr *phdr);
12 Elf_Scn* elfu_lastSectionInSegment(Elf *e, GElf_Phdr *phdr);
13
14 #endif