This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Darwin: add new mach-o header flags.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b4687fcc2bfb7e72bd34aed19490d0afe0fd9c2c

commit b4687fcc2bfb7e72bd34aed19490d0afe0fd9c2c
Author: Tristan Gingold <gingold@adacore.com>
Date:   Thu Dec 3 11:56:09 2015 +0100

    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:
---
 binutils/ChangeLog       | 5 +++++
 binutils/od-macho.c      | 4 ++++
 include/mach-o/ChangeLog | 5 +++++
 include/mach-o/loader.h  | 3 ++-
 4 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 28fe37e..feeb405 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2015-12-03  Tristan Gingold  <gingold@adacore.com>
+
+	* 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  <amodra@gmail.com>
 
 	* configure: Regenerate.
diff --git a/binutils/od-macho.c b/binutils/od-macho.c
index cb04409..0a718c0 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 b33a069..e33fd55 100644
--- a/include/mach-o/ChangeLog
+++ b/include/mach-o/ChangeLog
@@ -1,3 +1,8 @@
+2015-12-03  Tristan Gingold  <gingold@adacore.com>
+
+	* loader.h (bfd_mach_o_header_flags): Add
+	BFD_MACH_O_MH_APP_EXTENSION_SAFE.
+
 2015-11-17  Tristan Gingold  <gingold@adacore.com>
 
 	* arm64.h: New file.
diff --git a/include/mach-o/loader.h b/include/mach-o/loader.h
index 6838c39..045e315 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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]