aboutsummaryrefslogtreecommitdiff
path: root/bfd/mach-o.h
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 /bfd/mach-o.h
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 'bfd/mach-o.h')
-rw-r--r--bfd/mach-o.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/bfd/mach-o.h b/bfd/mach-o.h
index de9640a..1da79ff 100644
--- a/bfd/mach-o.h
+++ b/bfd/mach-o.h
@@ -453,6 +453,15 @@ typedef struct bfd_mach_o_dyld_info_command
}
bfd_mach_o_dyld_info_command;
+typedef struct bfd_mach_o_version_min_command
+{
+ unsigned char rel;
+ unsigned char maj;
+ unsigned char min;
+ unsigned int reserved;
+}
+bfd_mach_o_version_min_command;
+
typedef struct bfd_mach_o_load_command
{
bfd_mach_o_load_command_type type;
@@ -472,6 +481,7 @@ typedef struct bfd_mach_o_load_command
bfd_mach_o_linkedit_command linkedit;
bfd_mach_o_str_command str;
bfd_mach_o_dyld_info_command dyld_info;
+ bfd_mach_o_version_min_command version_min;
}
command;
}
@@ -493,7 +503,7 @@ typedef struct mach_o_data_struct
ufile_ptr filelen;
/* As symtab is referenced by other load command, it is handy to have
- a direct access to it. Also it is not clearly stated, only one symtab
+ a direct access to it. Although it is not clearly stated, only one symtab
is expected. */
bfd_mach_o_symtab_command *symtab;
bfd_mach_o_dysymtab_command *dysymtab;