summaryrefslogtreecommitdiff
path: root/bfd/mach-o.h
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-08-08 10:21:01 +0000
committerTristan Gingold <gingold@adacore.com>2011-08-08 10:21:01 +0000
commit404bdbfd780624efa1e6884b11775654ecb8ba24 (patch)
tree219dfeb8b5f9dc2d47b59f55c2e6ea9744bf4fbf /bfd/mach-o.h
parentce0dba97046fd44bd46d2cb2910fa43f51701b97 (diff)
downloadbinutils-redhat-404bdbfd780624efa1e6884b11775654ecb8ba24.tar.gz
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 de9640a880..1da79ffaff 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;