aboutsummaryrefslogtreecommitdiff
path: root/binutils/nlmconv.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-12-23 10:45:03 +0000
committerNick Clifton <nickc@redhat.com>2002-12-23 10:45:03 +0000
commit312b768e2f1579346e7ffe978202fda06cb37224 (patch)
tree3322c12eef2b97a147b0754f4d65aba2483f77a9 /binutils/nlmconv.c
parent8745eafadc9d43dbd9f9a0d2cc33e12f11ca1cd6 (diff)
downloadgdb-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 'binutils/nlmconv.c')
-rw-r--r--binutils/nlmconv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/binutils/nlmconv.c b/binutils/nlmconv.c
index 7d68dcd..6709461 100644
--- a/binutils/nlmconv.c
+++ b/binutils/nlmconv.c
@@ -377,7 +377,8 @@ main (argc, argv)
assert (bfd_get_flavour (outbfd) == bfd_target_nlm_flavour);
- if (bfd_arch_get_compatible (inbfd, outbfd) == NULL)
+ /* XXX: Should we accept the unknown bfd format here ? */
+ if (bfd_arch_get_compatible (inbfd, outbfd, TRUE) == NULL)
non_fatal (_("warning: input and output formats are not compatible"));
/* Move the values read from the command file into outbfd. */