/* File offset and size to rebase info. */
unsigned int rebase_off;
unsigned int rebase_size;
+ unsigned char *rebase_content;
/* File offset and size of binding info. */
unsigned int bind_off;
unsigned int bind_size;
+ unsigned char *bind_content;
/* File offset and size of weak binding info. */
unsigned int weak_bind_off;
unsigned int weak_bind_size;
+ unsigned char *weak_bind_content;
/* File offset and size of lazy binding info. */
unsigned int lazy_bind_off;
unsigned int lazy_bind_size;
+ unsigned char *lazy_bind_content;
/* File offset and size of export info. */
unsigned int export_off;
unsigned int export_size;
+ unsigned char *export_content;
}
bfd_mach_o_dyld_info_command;
typedef struct bfd_mach_o_load_command
{
+ /* Next command in the single linked list. */
+ struct bfd_mach_o_load_command *next;
+
+ /* Type and required flag. */
bfd_mach_o_load_command_type type;
bfd_boolean type_required;
+
+ /* Offset and length in the file. */
unsigned int offset;
unsigned int len;
+
union
{
bfd_mach_o_segment_command segment;
bfd_mach_o_fvmlib_command fvmlib;
bfd_mach_o_main_command main;
bfd_mach_o_source_version_command source_version;
- }
- command;
+ } command;
}
bfd_mach_o_load_command;
/* Mach-O header. */
bfd_mach_o_header header;
/* Array of load commands (length is given by header.ncmds). */
- bfd_mach_o_load_command *commands;
+ bfd_mach_o_load_command *first_command;
+ bfd_mach_o_load_command *last_command;
/* Flatten array of sections. The array is 0-based. */
unsigned long nsects;