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 | d089bb16477e6a2456cb80bc5ea72d846a78e26a (patch) | |
tree | b9e76a8f753949c98eda9441b97b0ce06f9a78d1 /ld/lexsup.c | |
parent | 2c56cac210a3d1d833219e22bfa0459397f05bf2 (diff) | |
download | binutils-redhat-d089bb16477e6a2456cb80bc5ea72d846a78e26a.tar.gz |
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 08ef1071a6..b5e52a88fd 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)) |