aboutsummaryrefslogtreecommitdiff
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
commit30824704e933a2dad20afc97be7bce651e4b5ac1 (patch)
tree49a5ba33578f0ab2f30b548e4dbd12af83baa7c1 /ld/ldlang.c
parent436ce5e7e644c7b1746e83fa371b2fda18a83aad (diff)
downloadgdb-30824704e933a2dad20afc97be7bce651e4b5ac1.zip
gdb-30824704e933a2dad20afc97be7bce651e4b5ac1.tar.gz
gdb-30824704e933a2dad20afc97be7bce651e4b5ac1.tar.bz2
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 3e63eed..0ffafb6 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? */