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/ldmain.c | |
parent | 2c56cac210a3d1d833219e22bfa0459397f05bf2 (diff) | |
download | binutils-redhat-d089bb16477e6a2456cb80bc5ea72d846a78e26a.tar.gz |
Implement ld --print-output-format.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r-- | ld/ldmain.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c index 1b4afffec6..ec9dcff4ff 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -427,11 +427,14 @@ main (int argc, char **argv) info_msg ("\n==================================================\n"); } + if (command_line.print_output_format) + info_msg ("%s\n", lang_get_output_target ()); + lang_final (); if (!lang_has_input_file) { - if (version_printed) + if (version_printed || command_line.print_output_format) xexit (0); einfo (_("%P%F: no input files\n")); } |