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/ldlang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ld/ldlang.c') 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? */ -- cgit v1.1