Juan Cespedes | 1cd999a | 2001-07-03 00:46:04 +0200 | [diff] [blame] | 1 | #ifndef LTRACE_ELF_H |
| 2 | #define LTRACE_ELF_H |
| 3 | |
| 4 | #include <elf.h> |
Juan Cespedes | 5e01f65 | 1998-03-08 22:31:44 +0100 | [diff] [blame] | 5 | #include "ltrace.h" |
Juan Cespedes | 96935a9 | 1997-08-09 23:45:39 +0200 | [diff] [blame] | 6 | |
Juan Cespedes | 1cd999a | 2001-07-03 00:46:04 +0200 | [diff] [blame] | 7 | struct ltelf { |
| 8 | int fd; |
| 9 | void* maddr; |
| 10 | Elf32_Ehdr* ehdr; |
| 11 | char* strtab; |
| 12 | Elf32_Sym* symtab; |
| 13 | int symtab_len; |
| 14 | }; |
| 15 | |
| 16 | extern int library_num; |
| 17 | extern char *library[MAX_LIBRARY]; |
| 18 | extern struct ltelf library_lte[MAX_LIBRARY]; |
| 19 | |
Juan Cespedes | 5e01f65 | 1998-03-08 22:31:44 +0100 | [diff] [blame] | 20 | extern struct library_symbol * read_elf(const char *); |
Juan Cespedes | 96935a9 | 1997-08-09 23:45:39 +0200 | [diff] [blame] | 21 | |
Juan Cespedes | 1cd999a | 2001-07-03 00:46:04 +0200 | [diff] [blame] | 22 | #endif |