From 312b768e2f1579346e7ffe978202fda06cb37224 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 23 Dec 2002 10:45:03 +0000 Subject: 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. --- binutils/ChangeLog | 5 +++++ binutils/nlmconv.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'binutils') diff --git a/binutils/ChangeLog b/binutils/ChangeLog index f411fcd..828ae57 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,10 @@ 2002-12-23 Nick Clifton + * nlmconv.c (main): Pass TRUE as third argument to + bfd_arch_get_compatible. + +2002-12-23 Nick Clifton + * 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 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. */ -- cgit v1.1