aboutsummaryrefslogtreecommitdiff
path: root/include/mach-o/external.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mach-o/external.h')
-rw-r--r--include/mach-o/external.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/include/mach-o/external.h b/include/mach-o/external.h
index 41a2932..4b0a83e 100644
--- a/include/mach-o/external.h
+++ b/include/mach-o/external.h
@@ -124,7 +124,7 @@ struct mach_o_reloc_info_external
#define BFD_MACH_O_SR_SCATTERED 0x80000000
/* For a non-scattered reloc, the relocation info is found in r_symbolnum.
- Bytes 1 to 3 contain the symbol number (0xffffff, in a non-scattered PAIR).
+ Bytes 1 to 3 contain the symbol number (0xffffff, in a non-scattered PAIR).
Byte 4 contains the relocation info - but with differing bit-positions
dependent on target endian-ness - as below. */
@@ -308,6 +308,28 @@ struct mach_o_fvmlib_command_external
unsigned char header_addr[4];
};
+struct mach_o_entry_point_command_external
+{
+ unsigned char entryoff[8]; /* File offset of the entry point. */
+ unsigned char stacksize[8]; /* Initial stack size, if no null. */
+};
+
+struct mach_o_source_version_command_external
+{
+ unsigned char version[8]; /* Version A.B.C.D.E, with 10 bits for B-E,
+ and 24 bits for A. */
+};
+
+/* The LD_DATA_IN_CODE command use a linkedit_data_command that points to
+ a table of entries. */
+
+struct mach_o_data_in_code_entry_external
+{
+ unsigned char offset[4]; /* Offset from the mach_header. */
+ unsigned char length[2]; /* Number of bytes. */
+ unsigned char kind[2]; /* Kind. See BFD_MACH_O_DICE_ values. */
+};
+
struct mach_o_fat_header_external
{
unsigned char magic[4];