]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Stop objcopy from corrupting mach-o files.
authorNick Clifton <nickc@redhat.com>
Wed, 20 Jun 2018 09:43:00 +0000 (10:43 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 20 Jun 2018 09:43:00 +0000 (10:43 +0100)
commitc6643fcc058d6b4aebca75818fbbb705837a9fa3
tree0e99ca41b74b546834d8b2151f9b855200146f68
parentebb1332297da904a4adab0d3696a5512604f5edd
Stop objcopy from corrupting mach-o files.

PR 23299
* mach-o.c (cputype): New function.
(cpusubtype): New function.
(bfd_mach_o_bfd_print_private_data): New function.  Dispalys the
values in the MACH-O file header.
(bfd_mach_o_bfd_copy_private_header_data): Copy the cputype and
cpusubtype fields from the input bfd's mach-o header to the output
bfd.
* mach-o-target.c (bfd_mach_o_bfd_print_private_bfd_data):
Redefine to bfd_mach_o_bfd_print_private_data.
* mach-o.h (bfd_mach_o_bfd_print_private_bfd_data): Prototype.
bfd/ChangeLog
bfd/mach-o-target.c
bfd/mach-o.c
bfd/mach-o.h