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/ldfile.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/ldfile.c')
-rw-r--r-- | ld/ldfile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ld/ldfile.c b/ld/ldfile.c index 34a25fa..b30fbe2 100644 --- a/ld/ldfile.c +++ b/ld/ldfile.c @@ -225,8 +225,9 @@ ldfile_try_open_bfd (attempt, entry) return TRUE; } - if ((bfd_arch_get_compatible (check, output_bfd) == NULL) - /* XCOFF archives can have 32 and 64 bit objects */ + if ((bfd_arch_get_compatible (check, output_bfd, + command_line.accept_unknown_input_arch) == NULL) + /* XCOFF archives can have 32 and 64 bit objects. */ && ! (bfd_get_flavour (check) == bfd_target_xcoff_flavour && bfd_get_flavour (output_bfd) == bfd_target_xcoff_flavour && bfd_check_format (entry->the_bfd, bfd_archive))) |