aboutsummaryrefslogtreecommitdiff
path: root/bfd/mach-o-target.c
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-target.c
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-target.c')
-rw-r--r--bfd/mach-o-target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/mach-o-target.c b/bfd/mach-o-target.c
index 9f3b487..54d9641 100644
--- a/bfd/mach-o-target.c
+++ b/bfd/mach-o-target.c
@@ -26,7 +26,7 @@
#define bfd_mach_o_bfd_free_cached_info _bfd_generic_bfd_free_cached_info
#define bfd_mach_o_get_section_contents_in_window _bfd_generic_get_section_contents_in_window
-#define bfd_mach_o_bfd_print_private_bfd_data _bfd_generic_bfd_print_private_bfd_data
+#define bfd_mach_o_bfd_print_private_bfd_data bfd_mach_o_bfd_print_private_bfd_data
#define bfd_mach_o_bfd_is_target_special_symbol _bfd_bool_bfd_asymbol_false
#define bfd_mach_o_bfd_is_local_label_name bfd_generic_is_local_label_name
#define bfd_mach_o_get_lineno _bfd_nosymbols_get_lineno