diff options
author | Roland McGrath <roland@gnu.org> | 2011-07-16 07:58:40 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2011-07-16 07:58:40 +0000 |
commit | 30824704e933a2dad20afc97be7bce651e4b5ac1 (patch) | |
tree | 49a5ba33578f0ab2f30b548e4dbd12af83baa7c1 /ld/lexsup.c | |
parent | 436ce5e7e644c7b1746e83fa371b2fda18a83aad (diff) | |
download | gdb-30824704e933a2dad20afc97be7bce651e4b5ac1.zip gdb-30824704e933a2dad20afc97be7bce651e4b5ac1.tar.gz gdb-30824704e933a2dad20afc97be7bce651e4b5ac1.tar.bz2 |
Implement ld --print-output-format.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r-- | ld/lexsup.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c index 08ef107..b5e52a8 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -175,6 +175,7 @@ enum option_values OPTION_PLUGIN_OPT, #endif /* ENABLE_PLUGINS */ OPTION_DEFAULT_SCRIPT, + OPTION_PRINT_OUTPUT_FORMAT, }; /* The long options. This structure is used for both the option @@ -491,6 +492,8 @@ static const struct ld_option ld_options[] = { {"oformat", required_argument, NULL, OPTION_OFORMAT}, '\0', N_("TARGET"), N_("Specify target of output file"), EXACTLY_TWO_DASHES }, + { {"print-output-format", no_argument, NULL, OPTION_PRINT_OUTPUT_FORMAT}, + '\0', NULL, N_("Print default output format"), TWO_DASHES }, { {"qmagic", no_argument, NULL, OPTION_IGNORE}, '\0', NULL, N_("Ignored for Linux compatibility"), ONE_DASH }, { {"reduce-memory-overheads", no_argument, NULL, @@ -1059,6 +1062,9 @@ parse_args (unsigned argc, char **argv) case OPTION_OFORMAT: lang_add_output_format (optarg, NULL, NULL, 0); break; + case OPTION_PRINT_OUTPUT_FORMAT: + command_line.print_output_format = TRUE; + break; #ifdef ENABLE_PLUGINS case OPTION_PLUGIN: if (plugin_opt_plugin (optarg)) |