|
|
cde03b |
#include "mdso_driver_impl.h"
|
|
|
cde03b |
#include "argv/argv.h"
|
|
|
cde03b |
|
|
|
cde03b |
const struct argv_option mdso_default_options[] = {
|
|
|
ffd5c6 |
{"version", 'v',TAG_VERSION,ARGV_OPTARG_NONE,0,0,0,
|
|
|
cde03b |
"show version information"},
|
|
|
cde03b |
|
|
|
ffd5c6 |
{"help", 'h',TAG_HELP,ARGV_OPTARG_OPTIONAL,0,"short|long",0,
|
|
|
cde03b |
"show usage information [listing %s options only]"},
|
|
|
cde03b |
|
|
|
c70c0a |
{"implib", 'i',TAG_IMPLIB,ARGV_OPTARG_REQUIRED,0,0,"<path>",
|
|
|
c70c0a |
"create an import library archive"},
|
|
|
c70c0a |
|
|
|
dc40b9 |
{"libname", 'n',TAG_LIBNAME,ARGV_OPTARG_REQUIRED,0,0,"<libname>",
|
|
|
dc40b9 |
"set dependency library name to %s"},
|
|
|
dc40b9 |
|
|
|
c12a92 |
{"asm", 'a',TAG_ASM,ARGV_OPTARG_NONE,0,0,0,
|
|
|
c12a92 |
"generate assembly sources"},
|
|
|
c12a92 |
|
|
|
3e55ee |
{"obj", 'b',TAG_OBJ,ARGV_OPTARG_NONE,0,0,0,
|
|
|
3e55ee |
"generate objects"},
|
|
|
3e55ee |
|
|
|
ffd5c6 |
{"machine", 'm',TAG_QUAD_PTR,ARGV_OPTARG_REQUIRED,0,"32|64",0,
|
|
|
7c0ec4 |
"set machine bits to %s"},
|
|
|
7c0ec4 |
|
|
|
313f34 |
{"libpath", 'l',TAG_LIBPATH,ARGV_OPTARG_REQUIRED,0,
|
|
|
313f34 |
"loader|ldso|peb|system32",0,
|
|
|
313f34 |
"indicate that this is the runtime loader "
|
|
|
313f34 |
"itself (ldso); otherwise, specify that the "
|
|
|
313f34 |
"runtime loader should search for the library "
|
|
|
313f34 |
"either according to its internal/inherited "
|
|
|
313f34 |
"path (loader), or according to the library "
|
|
|
313f34 |
"path in the process PEB block (peb); "
|
|
|
313f34 |
"alternatively, the loader may only search "
|
|
|
313f34 |
"for the library in the system library "
|
|
|
313f34 |
"directory (system32)."},
|
|
|
6848b7 |
|
|
|
ffd5c6 |
{"dstdir", 'd',TAG_DSTDIR,ARGV_OPTARG_REQUIRED,0,0,"<dstdir>",
|
|
|
d8c2b3 |
"save generated assembly files under %s"},
|
|
|
d8c2b3 |
|
|
|
ffd5c6 |
{"pretty", 'p',TAG_PRETTY,ARGV_OPTARG_REQUIRED,0,"yaml",0,
|
|
|
8cfad6 |
"format output for parsing by %s"},
|
|
|
8cfad6 |
|
|
|
ffd5c6 |
{"expsyms", 'e',TAG_EXPSYMS,ARGV_OPTARG_NONE,0,0,0,
|
|
|
8cfad6 |
"print exported symbols" },
|
|
|
8cfad6 |
|
|
|
684d6e |
{0,0,0,0,0,0,0,0}
|
|
|
cde03b |
};
|