diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2002-08-13 13:39:02 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2002-08-13 13:39:02 +0000 |
commit | 212a3c4d9dc124caf97fda76260c67f0ea467cdd (patch) | |
tree | 99fcbb9e5cdbbcceac9a155e16800bcdf854144e /binutils/objcopy.c | |
parent | 81967506b7550d22cfa251366f5ceb7e1f9ec87b (diff) | |
download | gdb-212a3c4d9dc124caf97fda76260c67f0ea467cdd.zip gdb-212a3c4d9dc124caf97fda76260c67f0ea467cdd.tar.gz gdb-212a3c4d9dc124caf97fda76260c67f0ea467cdd.tar.bz2 |
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.
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r-- | binutils/objcopy.c | 4 |
1 files changed, 3 insertions, 1 deletions
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))); |