PR24968, make objcopy use output ELF arch if -B not given
authorAlan Modra <amodra@gmail.com>
Tue, 19 Nov 2019 08:45:20 +0000 (19:15 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 19 Nov 2019 08:56:40 +0000 (19:26 +1030)
commit6765ee1825d92d25d9b3f6260de3f8a2a27e4998
tree65c95e752439552d1b55a35312eb1724148ae505
parentdd68a12bc4b19c50c31fe357335bb8ee9a3322fc
PR24968, make objcopy use output ELF arch if -B not given

This should make objcopy -B redundant for the common case of producing
ELF output where the -O target defaults to the desired arch:mach.

PR 24968
* objcopy.c (copy_object): For ELF output and non-ELF input without
arch, take arch from output file if not given by -B.  Don't
bfd_get_arch_info when we already have iarch.
binutils/ChangeLog
binutils/objcopy.c
This page took 0.023819 seconds and 4 git commands to generate.