Skip sections which are not PROGBITS
[elfdbg/.git] / elf.h
CommitLineData
1960d10e
SB
1#include <elf.h>
2#include <sys/stat.h>
3
4typedef struct Elf_Obj {
d0dd0df1
SB
5 int fd; /* file descriptor */
6 struct stat sb; /* file stat */
7 char *mm; /* memory mapping */
8 char *strtab; /* string table */
9 size_t strtab_size; /* string table size */
10 Elf_Ehdr *ehdr; /* header pointer */
11 size_t ehdr_size; /* header size */
12 Elf_Shdr *shdr; /* section header pointer */
13 size_t shdr_size; /* section header size */
1960d10e
SB
14} Elf_Obj;
15
d0dd0df1 16Elf_Obj *elf_init(const char *);
1960d10e
SB
17int elf_destroy(Elf_Obj *);
18Elf_Shdr *elf_strtab(Elf_Obj *);
d0dd0df1 19char *elf_str_get(Elf_Obj *, int);
1960d10e 20int elf_debug(Elf_Obj *);
363fc57e 21void elf_debug_print(Elf_Obj *);