aboutsummaryrefslogtreecommitdiff
path: root/bfd/mach-o.h
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2008-12-23 11:32:45 +0000
committerTristan Gingold <gingold@adacore.com>2008-12-23 11:32:45 +0000
commit846b9259cba427eb321444d30ef4c3dcb72e83e2 (patch)
treefcfbe0ebf1ec4d48ee100b2c73403452d6c022f0 /bfd/mach-o.h
parent44f746428118afa8aa4108ca79bb356798fafe1d (diff)
downloadgdb-846b9259cba427eb321444d30ef4c3dcb72e83e2.zip
gdb-846b9259cba427eb321444d30ef4c3dcb72e83e2.tar.gz
gdb-846b9259cba427eb321444d30ef4c3dcb72e83e2.tar.bz2
2008-12-23 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_make_bfd_section): Use the standard ELF name .eh_frame for __TEXT.__eh_frame so that it is recognized by gdb. Use shorter sections name for well known sections. (bfd_mach_o_scan_read_dylinker): Only put dylinker name in the section content. (bfd_mach_o_scan_read_segment): Use shorter sections name for well known segments. (bfd_mach_o_scan_read_command): Ignore some new commands. (bfd_mach_o_openr_next_archived_file): Use more descriptive names for members filename. (bfd_mach_o_fat_extract): New function to easily extract members of a fat binary. * mach-o.h (bfd_mach_o_load_command_type): Add new constants. (bfd_mach_o_dylinker_command): Fix comment and reindent. (bfd_mach_o_fat_extract): New prototype.
Diffstat (limited to 'bfd/mach-o.h')
-rw-r--r--bfd/mach-o.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/bfd/mach-o.h b/bfd/mach-o.h
index 8ffb1b2..615a4b3 100644
--- a/bfd/mach-o.h
+++ b/bfd/mach-o.h
@@ -105,7 +105,11 @@ typedef enum bfd_mach_o_load_command_type
in a dylib. */
BFD_MACH_O_LC_UUID = 0x1b, /* 128-bit UUID of the executable. */
BFD_MACH_O_LC_RPATH = 0x1c, /* Run path addiions. */
- BFD_MACH_O_LC_CODE_SIGNATURE = 0x1d /* Local of code signature. */
+ BFD_MACH_O_LC_CODE_SIGNATURE = 0x1d, /* Local of code signature. */
+ BFD_MACH_O_LC_SEGMENT_SPLIT_INFO = 0x1e, /* Local of info to split seg. */
+ BFD_MACH_O_LC_REEXPORT_DYLIB = 0x1f, /* Load and re-export lib. */
+ BFD_MACH_O_LC_LAZY_LOAD_DYLIB = 0x20, /* Delay load of lib until use. */
+ BFD_MACH_O_LC_ENCRYPTION_INFO = 0x21 /* Encrypted segment info. */
}
bfd_mach_o_load_command_type;
@@ -458,10 +462,10 @@ bfd_mach_o_thread_command;
typedef struct bfd_mach_o_dylinker_command
{
- unsigned long cmd; /* LC_ID_DYLIB or LC_LOAD_DYLIB. */
- unsigned long cmdsize; /* Includes pathname string. */
- unsigned long name_offset; /* Offset to library's path name. */
- unsigned long name_len; /* Offset to library's path name. */
+ unsigned long cmd; /* LC_ID_DYLINKER or LC_LOAD_DYLINKER. */
+ unsigned long cmdsize; /* Includes pathname string. */
+ unsigned long name_offset; /* Offset to library's path name. */
+ unsigned long name_len; /* Offset to library's path name. */
asection *section;
}
bfd_mach_o_dylinker_command;
@@ -555,6 +559,7 @@ int bfd_mach_o_core_fetch_environment (bfd *, unsigned ch
char * bfd_mach_o_core_file_failing_command (bfd *);
int bfd_mach_o_core_file_failing_signal (bfd *);
bfd_boolean bfd_mach_o_core_file_matches_executable_p (bfd *, bfd *);
+bfd *bfd_mach_o_fat_extract (bfd *, bfd_format , const bfd_arch_info_type *);
extern const bfd_target mach_o_be_vec;
extern const bfd_target mach_o_le_vec;