From: Tristan Gingold Date: Thu, 3 Dec 2015 10:56:09 +0000 (+0100) Subject: Darwin: add new mach-o header flags. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b4687fcc2bfb7e72bd34aed19490d0afe0fd9c2c;p=binutils-gdb.git Darwin: add new mach-o header flags. binutils/ * od-macho.c (bfd_mach_o_header_flags_name): Add name for flags until BFD_MACH_O_MH_APP_EXTENSION_SAFE. include/mach-o/ * loader.h (bfd_mach_o_header_flags): Add BFD_MACH_O_MH_APP_EXTENSION_SAFE. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 28fe37ed83e..feeb4055b45 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2015-12-03 Tristan Gingold + + * od-macho.c (bfd_mach_o_header_flags_name): Add name + for flags until BFD_MACH_O_MH_APP_EXTENSION_SAFE. + 2015-12-01 Alan Modra * configure: Regenerate. diff --git a/binutils/od-macho.c b/binutils/od-macho.c index cb04409632a..0a718c0b5fd 100644 --- a/binutils/od-macho.c +++ b/binutils/od-macho.c @@ -155,6 +155,10 @@ static const bfd_mach_o_xlat_name bfd_mach_o_header_flags_name[] = { "setuid_safe", BFD_MACH_O_MH_SETUID_SAFE }, { "no_reexported_dylibs", BFD_MACH_O_MH_NO_REEXPORTED_DYLIBS }, { "pie", BFD_MACH_O_MH_PIE }, + { "dead_strippable_dylib", BFD_MACH_O_MH_DEAD_STRIPPABLE_DYLIB }, + { "has_tlv", BFD_MACH_O_MH_HAS_TLV_DESCRIPTORS }, + { "no_heap_execution", BFD_MACH_O_MH_NO_HEAP_EXECUTION }, + { "app_extension_safe", BFD_MACH_O_MH_APP_EXTENSION_SAFE }, { NULL, 0} }; diff --git a/include/mach-o/ChangeLog b/include/mach-o/ChangeLog index b33a0697e22..e33fd551916 100644 --- a/include/mach-o/ChangeLog +++ b/include/mach-o/ChangeLog @@ -1,3 +1,8 @@ +2015-12-03 Tristan Gingold + + * loader.h (bfd_mach_o_header_flags): Add + BFD_MACH_O_MH_APP_EXTENSION_SAFE. + 2015-11-17 Tristan Gingold * arm64.h: New file. diff --git a/include/mach-o/loader.h b/include/mach-o/loader.h index 6838c39d06b..045e315a407 100644 --- a/include/mach-o/loader.h +++ b/include/mach-o/loader.h @@ -125,7 +125,8 @@ typedef enum bfd_mach_o_header_flags BFD_MACH_O_MH_PIE = 0x0200000, BFD_MACH_O_MH_DEAD_STRIPPABLE_DYLIB = 0x0400000, BFD_MACH_O_MH_HAS_TLV_DESCRIPTORS = 0x0800000, - BFD_MACH_O_MH_NO_HEAP_EXECUTION = 0x1000000 + BFD_MACH_O_MH_NO_HEAP_EXECUTION = 0x1000000, + BFD_MACH_O_MH_APP_EXTENSION_SAFE = 0x2000000 } bfd_mach_o_header_flags;