2002-08-13 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 13 Aug 2002 13:39:02 +0000 (13:39 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 13 Aug 2002 13:39:02 +0000 (13:39 +0000)
* objcopy.c (copy_object): Don't warn about the unsupported
architecture unless the input target is defaulted or the
output architecture is different from the input.

binutils/ChangeLog
binutils/objcopy.c

index 1f1bda5791c1eefa4dcf6aea507e3af00b335b58..5c752994b1ad2ec62f1b67d1da0d2e4eaf045640 100644 (file)
@@ -1,3 +1,9 @@
+2002-08-13  H.J. Lu <hjl@gnu.org>
+
+       * objcopy.c (copy_object): Don't warn about the unsupported
+       architecture unless the input target is defaulted or the
+       output architecture is different from the input.
+
 2002-08-09  Nick Clifton  <nickc@redhat.com>
 
        * po/sv.po: Updated Swedish translation.
index 241a2c66630d8c38cef5e69ddabfbefc9f3f10d5..1accad41931160dd57c2724430456a42f645a873 100644 (file)
@@ -973,7 +973,9 @@ copy_object (ibfd, obfd)
 
   /* Copy architecture of input file to output file.  */
   if (!bfd_set_arch_mach (obfd, bfd_get_arch (ibfd),
-                         bfd_get_mach (ibfd)))
+                         bfd_get_mach (ibfd))
+      && (ibfd->target_defaulted
+         || bfd_get_arch (ibfd) != bfd_get_arch (obfd)))
     non_fatal (_("Warning: Output file cannot represent architecture %s"),
               bfd_printable_arch_mach (bfd_get_arch (ibfd),
                                        bfd_get_mach (ibfd)));
This page took 0.027664 seconds and 4 git commands to generate.