From 212a3c4d9dc124caf97fda76260c67f0ea467cdd Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 13 Aug 2002 13:39:02 +0000 Subject: [PATCH] 2002-08-13 H.J. Lu * 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 | 6 ++++++ binutils/objcopy.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 1f1bda5..5c75299 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2002-08-13 H.J. Lu + + * 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 * po/sv.po: Updated Swedish translation. diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 241a2c6..1accad4 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -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))); -- 2.7.4