aboutsummaryrefslogtreecommitdiff
path: root/bfd/mach-o.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2018-11-06 17:09:40 +0000
committerNick Clifton <nickc@redhat.com>2018-11-06 17:17:43 +0000
commitddea148b3da27eb681504bf341f45abb7a74580b (patch)
treefcfc93749a8d85c433600f47cfe5bb57d3089918 /bfd/mach-o.c
parentf86e17aacf47c7b49ed0f6b23a481784f3946133 (diff)
downloadgdb-ddea148b3da27eb681504bf341f45abb7a74580b.zip
gdb-ddea148b3da27eb681504bf341f45abb7a74580b.tar.gz
gdb-ddea148b3da27eb681504bf341f45abb7a74580b.tar.bz2
Add support for a couple of new Mach-O commands.
PR 23742 * mach-o.c (bfd_mach_o_read_command): Accept and ignore BFD_MACH_O_LC_LINKER_OPTIONS and BFD_MACH_O_LC_BUILD_VERSION commands. * mach-o/loader.h: Add BFD_MACH_O_LC_BUILD_VERSION.
Diffstat (limited to 'bfd/mach-o.c')
-rw-r--r--bfd/mach-o.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/mach-o.c b/bfd/mach-o.c
index 1b461f5..1d0ade3 100644
--- a/bfd/mach-o.c
+++ b/bfd/mach-o.c
@@ -4888,6 +4888,9 @@ bfd_mach_o_read_command (bfd *abfd, bfd_mach_o_load_command *command)
if (!bfd_mach_o_read_source_version (abfd, command))
return FALSE;
break;
+ case BFD_MACH_O_LC_LINKER_OPTIONS:
+ case BFD_MACH_O_LC_BUILD_VERSION:
+ break;
default:
command->len = 0;
_bfd_error_handler (_("%pB: unknown load command %#x"),