#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "list.h"
#include "objectFile.h"
Go to the source code of this file.
Defines | |
#define | SO_LINKER "ld" |
The default linker. | |
#define | SO_DUMPER "objdump" |
The object file dumper. | |
#define | SO_DPARAM "-rh" |
Parameters for the dumper. | |
#define | SO_DFILE ".-" |
Temporary file for the dumper. | |
#define | SO_REMOVER "objcopy" |
Object copy tool. | |
#define | SO_RRMV "-R" |
Parameter to remove sections. | |
#define | SO_PIPE ">" |
Pipe symbol. | |
#define | SO_DUMP_CMDLN 1 |
#define | SO_DUMP_DISCARTED 2 |
#define | SO_DUMP_USED 4 |
#define | SO_OBJECTS 8 |
#define | SO_HELP 16 |
#define | SO_DUMP_MAP 32 |
#define | SO_DNRM 64 |
#define | SO_COLLECT 128 |
#define | SO_SC(tar, txt) |
Functions | |
int | main (int argc, const char *argv[]) |
Variables | |
static const char * | hlp |
Definition in file main.c.
#define SO_SC | ( | tar, | |||
txt | ) |
const char* hlp [static] |
Initial value:
"Usage: deadstrip [options] file...\n" "Options:\n" " --help display this HELP\n" " --dcmd Dumps the ComManD line\n" " --ddis Dumps DIScarted sections\n" " --duse Dumps USEd sections\n" " --dmap Dump the dependency MAP\n" " --linker <filename> use alternative LINKER (default: "SO_LINKER")\n" " --dnrm Do Not ReMove any sections\n" " --save <item> SAVE an item and its dependencies\n" " > just pass the decorated variable/function name, not the section\n" " > the main function gets saved by default\n" "\n" "Version 1.1\n" "Last compiled on "__DATE__".\n"