aboutsummaryrefslogtreecommitdiff
path: root/include/mach-o
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-08-08 10:21:02 +0000
committerTristan Gingold <gingold@adacore.com>2011-08-08 10:21:02 +0000
commitedbdea0ed776219d6ce4584a05213ec210b779f9 (patch)
tree1d1f2ccf0056156eed3184dbef6d3044b8c512de /include/mach-o
parent46d1c23bceb2b8923af0d00a7f536a88524d6a74 (diff)
downloadgdb-edbdea0ed776219d6ce4584a05213ec210b779f9.zip
gdb-edbdea0ed776219d6ce4584a05213ec210b779f9.tar.gz
gdb-edbdea0ed776219d6ce4584a05213ec210b779f9.tar.bz2
bfd/
2011-08-08 Tristan Gingold <gingold@adacore.com> * mach-o.h (bfd_mach_o_version_min_command): New structure. (bfd_mach_o_load_command): Add version_min. (mach_o_data_struct): Fix comment. * mach-o.c (bfd_mach_o_read_version_min): New function. (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_FUNCTION_STARTS, BFD_MACH_O_LC_VERSION_MIN_MACOSX and BFD_MACH_O_LC_VERSION_MIN_IPHONEOS. (bfd_mach_o_get_name_or_null): New function. (bfd_mach_o_get_name): Use the above new one. (bfd_mach_o_load_command_name): Add the above new commands. (bfd_mach_o_bfd_print_private_bfd_data): Display numerically unknown commands. Handle BFD_MACH_O_LC_FUNCTION_STARTS, BFD_MACH_O_LC_VERSION_MIN_MACOSX and BFD_MACH_O_LC_VERSION_MIN_IPHONEOS. include/mach-o/ 2011-08-08 Tristan Gingold <gingold@adacore.com> * loader.h (bfd_mach_o_load_command_type): Add BFD_MACH_O_LC_LOAD_UPWARD_DYLIB, BFD_MACH_O_LC_VERSION_MIN_MACOSX, BFD_MACH_O_LC_VERSION_MIN_IPHONEOS, BFD_MACH_O_LC_FUNCTION_STARTS, and BFD_MACH_O_LC_DYLD_ENVIRONMENT. * external.h (mach_o_version_min_command_external): New structure.
Diffstat (limited to 'include/mach-o')
-rw-r--r--include/mach-o/ChangeLog8
-rw-r--r--include/mach-o/external.h6
-rw-r--r--include/mach-o/loader.h7
3 files changed, 20 insertions, 1 deletions
diff --git a/include/mach-o/ChangeLog b/include/mach-o/ChangeLog
index dff287a..2276d01 100644
--- a/include/mach-o/ChangeLog
+++ b/include/mach-o/ChangeLog
@@ -1,5 +1,13 @@
2011-08-08 Tristan Gingold <gingold@adacore.com>
+ * loader.h (bfd_mach_o_load_command_type): Add
+ BFD_MACH_O_LC_LOAD_UPWARD_DYLIB, BFD_MACH_O_LC_VERSION_MIN_MACOSX,
+ BFD_MACH_O_LC_VERSION_MIN_IPHONEOS, BFD_MACH_O_LC_FUNCTION_STARTS,
+ and BFD_MACH_O_LC_DYLD_ENVIRONMENT.
+ * external.h (mach_o_version_min_command_external): New structure.
+
+2011-08-08 Tristan Gingold <gingold@adacore.com>
+
* loader.h: Reorder declarations.
* x86-64.h: New file.
* external.h: New file.
diff --git a/include/mach-o/external.h b/include/mach-o/external.h
index c2fe7e3..ebb09a7 100644
--- a/include/mach-o/external.h
+++ b/include/mach-o/external.h
@@ -249,6 +249,12 @@ struct mach_o_dyld_info_command_external
unsigned char export_size[4];
};
+struct mach_o_version_min_command_external
+{
+ unsigned char version[4];
+ unsigned char reserved[4];
+};
+
struct mach_o_fat_header_external
{
unsigned char magic[4];
diff --git a/include/mach-o/loader.h b/include/mach-o/loader.h
index 1105204..357f65e 100644
--- a/include/mach-o/loader.h
+++ b/include/mach-o/loader.h
@@ -148,7 +148,12 @@ typedef enum bfd_mach_o_load_command_type
BFD_MACH_O_LC_REEXPORT_DYLIB = 0x1f, /* Load and re-export lib. */
BFD_MACH_O_LC_LAZY_LOAD_DYLIB = 0x20, /* Delay load of lib until use. */
BFD_MACH_O_LC_ENCRYPTION_INFO = 0x21, /* Encrypted segment info. */
- BFD_MACH_O_LC_DYLD_INFO = 0x22 /* Compressed dyld information. */
+ BFD_MACH_O_LC_DYLD_INFO = 0x22, /* Compressed dyld information. */
+ BFD_MACH_O_LC_LOAD_UPWARD_DYLIB = 0x23, /* Load upward dylib. */
+ BFD_MACH_O_LC_VERSION_MIN_MACOSX = 0x24, /* Minimal MacOSX version. */
+ BFD_MACH_O_LC_VERSION_MIN_IPHONEOS = 0x25, /* Minimal IOS version. */
+ BFD_MACH_O_LC_FUNCTION_STARTS = 0x26, /* Compressed table of func start. */
+ BFD_MACH_O_LC_DYLD_ENVIRONMENT = 0x27 /* Env variable string for dyld. */
}
bfd_mach_o_load_command_type;