aboutsummaryrefslogtreecommitdiff
path: root/include/mach-o
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 /include/mach-o
parentf86e17aacf47c7b49ed0f6b23a481784f3946133 (diff)
downloadfsf-binutils-gdb-ddea148b3da27eb681504bf341f45abb7a74580b.zip
fsf-binutils-gdb-ddea148b3da27eb681504bf341f45abb7a74580b.tar.gz
fsf-binutils-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 'include/mach-o')
-rw-r--r--include/mach-o/loader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mach-o/loader.h b/include/mach-o/loader.h
index c075a8e..9abc51c 100644
--- a/include/mach-o/loader.h
+++ b/include/mach-o/loader.h
@@ -185,7 +185,8 @@ typedef enum bfd_mach_o_load_command_type
BFD_MACH_O_LC_ENCRYPTION_INFO_64 = 0x2c, /* Encrypted 64 bit seg info. */
BFD_MACH_O_LC_LINKER_OPTIONS = 0x2d, /* Linker options. */
BFD_MACH_O_LC_LINKER_OPTIMIZATION_HINT = 0x2e, /* Optimization hints. */
- BFD_MACH_O_LC_VERSION_MIN_WATCHOS = 0x30 /* Minimal WatchOS version. */
+ BFD_MACH_O_LC_VERSION_MIN_WATCHOS = 0x30, /* Minimal WatchOS version. */
+ BFD_MACH_O_LC_BUILD_VERSION = 0x32 /* Records linker, SDK, OS, and tools version used. */
}
bfd_mach_o_load_command_type;