diff options
author | Nick Clifton <nickc@redhat.com> | 2002-12-23 10:45:03 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-12-23 10:45:03 +0000 |
commit | 312b768e2f1579346e7ffe978202fda06cb37224 (patch) | |
tree | 3322c12eef2b97a147b0754f4d65aba2483f77a9 /ld/ldlang.c | |
parent | 8745eafadc9d43dbd9f9a0d2cc33e12f11ca1cd6 (diff) | |
download | gdb-312b768e2f1579346e7ffe978202fda06cb37224.zip gdb-312b768e2f1579346e7ffe978202fda06cb37224.tar.gz gdb-312b768e2f1579346e7ffe978202fda06cb37224.tar.bz2 |
Change linker's default behaviour - it will now reject binary files whoes
architecture it does not recognise, unless it has explicitly told to accept
them.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index 66b4b13..9565a63 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -3699,7 +3699,8 @@ lang_check () file = file->input_statement.next) { input_bfd = file->input_statement.the_bfd; - compatible = bfd_arch_get_compatible (input_bfd, output_bfd); + compatible = bfd_arch_get_compatible (input_bfd, output_bfd, + command_line.accept_unknown_input_arch); /* In general it is not possible to perform a relocatable link between differing object formats when the input |