aboutsummaryrefslogtreecommitdiff
path: root/bfd/mach-o.h
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
parentebb1332297da904a4adab0d3696a5512604f5edd (diff)
downloadgdb-c6643fcc058d6b4aebca75818fbbb705837a9fa3.zip
gdb-c6643fcc058d6b4aebca75818fbbb705837a9fa3.tar.gz
gdb-c6643fcc058d6b4aebca75818fbbb705837a9fa3.tar.bz2
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 c09e274..d80d439 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,