aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2018-06-20 10:43:00 +0100
committerNick Clifton <nickc@redhat.com>2018-06-20 10:43:00 +0100
commitc6643fcc058d6b4aebca75818fbbb705837a9fa3 (patch)
tree0e99ca41b74b546834d8b2151f9b855200146f68 /bfd/mach-o.h
parentFix problem where gold does not create base version for executables. (diff)
downloadbinutils-gdb-c6643fcc058d6b4aebca75818fbbb705837a9fa3.tar.gz
binutils-gdb-c6643fcc058d6b4aebca75818fbbb705837a9fa3.tar.bz2
binutils-gdb-c6643fcc058d6b4aebca75818fbbb705837a9fa3.zip
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.
Diffstat (limited to 'bfd/mach-o.h')
-rw-r--r--bfd/mach-o.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/mach-o.h b/bfd/mach-o.h
index c09e274f0ce..d80d43991ea 100644
--- a/bfd/mach-o.h
+++ b/bfd/mach-o.h
@@ -659,6 +659,7 @@ bfd_boolean bfd_mach_o_bfd_copy_private_section_data (bfd *, asection *,
bfd *, asection *);
bfd_boolean bfd_mach_o_bfd_copy_private_header_data (bfd *, bfd *);
bfd_boolean bfd_mach_o_bfd_set_private_flags (bfd *, flagword);
+bfd_boolean bfd_mach_o_bfd_print_private_bfd_data (bfd *, void *);
long bfd_mach_o_get_symtab_upper_bound (bfd *);
long bfd_mach_o_canonicalize_symtab (bfd *, asymbol **);
long bfd_mach_o_get_synthetic_symtab (bfd *, long, asymbol **, long,