diff options
Diffstat (limited to 'elf.h')
-rw-r--r-- | elf.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -1,4 +1,22 @@ +#ifndef LTRACE_ELF_H +#define LTRACE_ELF_H + +#include <elf.h> #include "ltrace.h" +struct ltelf { + int fd; + void* maddr; + Elf32_Ehdr* ehdr; + char* strtab; + Elf32_Sym* symtab; + int symtab_len; +}; + +extern int library_num; +extern char *library[MAX_LIBRARY]; +extern struct ltelf library_lte[MAX_LIBRARY]; + extern struct library_symbol * read_elf(const char *); +#endif |