summaryrefslogtreecommitdiff
path: root/bfd/mach-o.h
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2012-11-14 11:03:26 +0000
committerTristan Gingold <gingold@adacore.com>2012-11-14 11:03:26 +0000
commitca20f7d48719af401eae0343290d93cb01f8f9fa (patch)
tree8bda7fda3bb849e6fb107740625f58aa76af9041 /bfd/mach-o.h
parent25d6c28d764cb0be9421cd2da9f6285eaa05f079 (diff)
downloadgdb-ca20f7d48719af401eae0343290d93cb01f8f9fa.tar.gz
bfd/
2012-11-14 Tristan Gingold <gingold@adacore.com> * mach-o.c (bfd_mach_o_read_main) (bfd_mach_o_read_source_version): New functions. (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_DATA_IN_CODE, BFD_MACH_O_LC_DYLIB_CODE_SIGN_DRS, BFD_MACH_O_LC_MAIN, BFD_MACH_O_LC_SOURCE_VERSION. * mach-o.h (bfd_mach_o_main_command) (bfd_mach_o_source_version_command): New types. (bfd_mach_o_load_command): Add fields for these new types. binutils/ 2012-11-14 Tristan Gingold <gingold@adacore.com> * od-macho.c (bfd_mach_o_load_command_name): Add new definitions. (dump_load_command): Handle BFD_MACH_O_LC_SOURCE_VERSION and BFD_MACH_O_LC_MAIN.
Diffstat (limited to 'bfd/mach-o.h')
-rw-r--r--bfd/mach-o.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/bfd/mach-o.h b/bfd/mach-o.h
index f228df048ff..1db86746b9b 100644
--- a/bfd/mach-o.h
+++ b/bfd/mach-o.h
@@ -467,7 +467,7 @@ bfd_mach_o_fvmlib_command;
typedef struct bfd_mach_o_dyld_info_command
{
/* File offset and size to rebase info. */
- unsigned int rebase_off;
+ unsigned int rebase_off;
unsigned int rebase_size;
/* File offset and size of binding info. */
@@ -505,6 +505,23 @@ typedef struct bfd_mach_o_encryption_info_command
}
bfd_mach_o_encryption_info_command;
+typedef struct bfd_mach_o_main_command
+{
+ bfd_uint64_t entryoff;
+ bfd_uint64_t stacksize;
+}
+bfd_mach_o_main_command;
+
+typedef struct bfd_mach_o_source_version_command
+{
+ unsigned int a;
+ unsigned short b;
+ unsigned short c;
+ unsigned short d;
+ unsigned short e;
+}
+bfd_mach_o_source_version_command;
+
typedef struct bfd_mach_o_load_command
{
bfd_mach_o_load_command_type type;
@@ -527,6 +544,8 @@ typedef struct bfd_mach_o_load_command
bfd_mach_o_version_min_command version_min;
bfd_mach_o_encryption_info_command encryption_info;
bfd_mach_o_fvmlib_command fvmlib;
+ bfd_mach_o_main_command main;
+ bfd_mach_o_source_version_command source_version;
}
command;
}