diff options
Diffstat (limited to 'dumpelf.c')
-rw-r--r-- | dumpelf.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -28,7 +28,7 @@ static void parseargs(int argc, char *argv[]); static char be_verbose = 0; /* misc dynamic tag caches */ -static void *phdr_dynamic_void = NULL; +static void *phdr_dynamic_void; /* dump all internal elf info */ static void dumpelf(const char *filename, long file_cnt) @@ -40,6 +40,8 @@ static void dumpelf(const char *filename, long file_cnt) if ((elf = readelf(filename)) == NULL) return; + phdr_dynamic_void = NULL; + printf("#include <elf.h>\n"); printf( |