aboutsummaryrefslogtreecommitdiff
path: root/elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'elf.h')
-rw-r--r--elf.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/elf.h b/elf.h
index dc5bb46..6687927 100644
--- a/elf.h
+++ b/elf.h
@@ -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