#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include "myio.h"
#include "elfflt.h"
gehe zum Quellcode dieser Datei
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definiert in Zeile 20 der Datei main.c.
25 printf(
"elfflt.exe filename.elf filename.flt [-vefrhsS] [-iIMPORTFILE.TXT]\n");
26 printf(
" -iPATH/TO/exportlist.txt for list of imported symbols\n");
27 printf(
" -!PATH/TO/stoplist.txt for list of unsafe symbols\n");
28 printf(
" -e dump elf\n -S show elf sections\n -f dump flat\n -r show relocations\n -h show flat headers\n -s dump elf symbols\n -v verbose");
35 char* filename_import =0;
36 char* filename_stoplist =0;
41 if (argv[i][0]!=
'-')
continue;
51 case 'i': filename_import = argv[i]+2;
break;
52 case '!': filename_stoplist = argv[i]+2;
break;
62 fprintf(stderr,
"Error load file '%s': loaded %d\n",
filename_elf,rv);
72 PRINTERR(stderr,
"elf2flt: Internal error\n");
int FLAG_DUMP_FLT_HEADERS = 0 |
int FLAG_DUMP_SECTIONS = 0 |
Definiert in Zeile 8 der Datei main.c.
int FLAG_DUMP_SYMBOLS = 0 |
Definiert in Zeile 9 der Datei main.c.