Implement ld --print-output-format.

This commit is contained in:
Roland McGrath
2011-07-16 07:58:40 +00:00
parent 436ce5e7e6
commit 30824704e9
6 changed files with 32 additions and 2 deletions

View File

@@ -3052,7 +3052,7 @@ lang_get_output_target (void)
/* No - has the current target been set to something other than
the default? */
if (current_target != default_target)
if (current_target != default_target && current_target != NULL)
return current_target;
/* No - can we determine the format of the first input file? */