diff options
author | Roland McGrath <roland@gnu.org> | 2011-07-16 07:58:40 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2011-07-16 07:58:40 +0000 |
commit | d089bb16477e6a2456cb80bc5ea72d846a78e26a (patch) | |
tree | b9e76a8f753949c98eda9441b97b0ce06f9a78d1 /ld/ldlang.c | |
parent | 2c56cac210a3d1d833219e22bfa0459397f05bf2 (diff) | |
download | binutils-redhat-d089bb16477e6a2456cb80bc5ea72d846a78e26a.tar.gz |
Implement ld --print-output-format.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 2 |
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? */ |