From 30824704e933a2dad20afc97be7bce651e4b5ac1 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 16 Jul 2011 07:58:40 +0000 Subject: Implement ld --print-output-format. --- ld/ldmain.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ld/ldmain.c') diff --git a/ld/ldmain.c b/ld/ldmain.c index 1b4afff..ec9dcff 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")); } -- cgit v1.1