diff options
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/objcopy.c | 11 |
2 files changed, 13 insertions, 3 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 6ee23c4060a..02d6944b0b6 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2003-10-14 Anil Paranjpe <anilp1@KPITCummins.com> + + * objcopy.c (copy_main): Reads machine flags from arch_info + structure. + 2003-10-20 Andrew Cagney <cagney@redhat.com> * coffgrok.h (coff_section): Replace 'struct sec" with "struct diff --git a/binutils/objcopy.c b/binutils/objcopy.c index c6512217f7f..b48b84ff02d 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -351,8 +351,10 @@ extern unsigned int Chunk; on by the --srec-forceS3 command line switch. */ extern bfd_boolean S3Forced; -/* Defined in bfd/binary.c. Used to set architecture of input binary files. */ -extern enum bfd_architecture bfd_external_binary_architecture; +/* Defined in bfd/binary.c. Used to set architecture and machine of input + binary files. */ +extern enum bfd_architecture bfd_external_binary_architecture; +extern unsigned long bfd_external_machine; /* Forward declarations. */ static void setup_section (bfd *, asection *, void *); @@ -2769,7 +2771,10 @@ copy_main (int argc, char *argv[]) temp_arch_info = bfd_scan_arch (binary_architecture); if (temp_arch_info != NULL) - bfd_external_binary_architecture = temp_arch_info->arch; + { + bfd_external_binary_architecture = temp_arch_info->arch; + bfd_external_machine = temp_arch_info->mach; + } else fatal (_("architecture %s unknown"), binary_architecture); } |