summaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2011-07-16 07:58:40 +0000
committerRoland McGrath <roland@gnu.org>2011-07-16 07:58:40 +0000
commitd089bb16477e6a2456cb80bc5ea72d846a78e26a (patch)
treeb9e76a8f753949c98eda9441b97b0ce06f9a78d1 /ld/ldlang.c
parent2c56cac210a3d1d833219e22bfa0459397f05bf2 (diff)
downloadbinutils-redhat-d089bb16477e6a2456cb80bc5ea72d846a78e26a.tar.gz
Implement ld --print-output-format.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 3e63eedd40..0ffafb6655 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -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? */