summaryrefslogtreecommitdiff
path: root/binutils
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
commit5e1dfb82ac05215710dba49688e8e8342afc43cb (patch)
treed598721b99b88af416fe8c461f0daf6746b6524f /binutils
parented2d2a7095353be42d71901372225e3d9112cd94 (diff)
downloadbinutils-redhat-5e1dfb82ac05215710dba49688e8e8342afc43cb.tar.gz
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')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/nlmconv.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index f411fcdba6..828ae57fcd 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,10 @@
2002-12-23 Nick Clifton <nickc@redhat.com>
+ * nlmconv.c (main): Pass TRUE as third argument to
+ bfd_arch_get_compatible.
+
+2002-12-23 Nick Clifton <nickc@redhat.com>
+
* strings.c (isgraphic): Replace definition with STRING_ISGRAPHIC
macro. Handle 'S' encoding, accepting 8-bit characters.
(main): Parse 'S' encoding.
diff --git a/binutils/nlmconv.c b/binutils/nlmconv.c
index 7d68dcd205..6709461d32 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. */