blob: 6687927c2ab2715a21e03b7ffeb7e614ee05b5b6 [file] [log] [blame]
Juan Cespedes1cd999a2001-07-03 00:46:04 +02001#ifndef LTRACE_ELF_H
2#define LTRACE_ELF_H
3
4#include <elf.h>
Juan Cespedes5e01f651998-03-08 22:31:44 +01005#include "ltrace.h"
Juan Cespedes96935a91997-08-09 23:45:39 +02006
Juan Cespedes1cd999a2001-07-03 00:46:04 +02007struct ltelf {
8 int fd;
9 void* maddr;
10 Elf32_Ehdr* ehdr;
11 char* strtab;
12 Elf32_Sym* symtab;
13 int symtab_len;
14};
15
16extern int library_num;
17extern char *library[MAX_LIBRARY];
18extern struct ltelf library_lte[MAX_LIBRARY];
19
Juan Cespedes5e01f651998-03-08 22:31:44 +010020extern struct library_symbol * read_elf(const char *);
Juan Cespedes96935a91997-08-09 23:45:39 +020021
Juan Cespedes1cd999a2001-07-03 00:46:04 +020022#endif