summaryrefslogtreecommitdiff
path: root/bfd/mach-o.h
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2009-09-16 13:30:31 +0000
committerTristan Gingold <gingold@adacore.com>2009-09-16 13:30:31 +0000
commitb799998bfb0f9f570f540507432668e27ad0334b (patch)
treecaa890566d2925fb40b48117e75dfc6f2bf231d6 /bfd/mach-o.h
parentece1f864adccf03d94a39d4d126637e334ff8d02 (diff)
downloadgdb-b799998bfb0f9f570f540507432668e27ad0334b.tar.gz
2009-09-16 Tristan Gingold <gingold@adacore.com>
* mach-o.h (bfd_mach_o_filetype): Add new constants from darwin10. Reindent. * mach-o.c (bfd_mach_o_cpu_name): Reindent. (bfd_mach_o_filetype_name): Complete with new constants. Reindent. (bfd_mach_o_print_private_header): Use fputs instead of fprintf when possible to avoid warnings. (bfd_mach_o_print_section_map): Ditto. (bfd_mach_o_section_get_entry_size): New function. (bfd_mach_o_section_get_nbr_indirect): Simplify using the newly added function. (bfd_mach_o_print_dysymtab): Print address of indirect symbols.
Diffstat (limited to 'bfd/mach-o.h')
-rw-r--r--bfd/mach-o.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/bfd/mach-o.h b/bfd/mach-o.h
index c1831e4bc14..b86fe075c55 100644
--- a/bfd/mach-o.h
+++ b/bfd/mach-o.h
@@ -166,14 +166,17 @@ bfd_mach_o_cpu_subtype;
typedef enum bfd_mach_o_filetype
{
- BFD_MACH_O_MH_OBJECT = 1,
- BFD_MACH_O_MH_EXECUTE = 2,
- BFD_MACH_O_MH_FVMLIB = 3,
- BFD_MACH_O_MH_CORE = 4,
- BFD_MACH_O_MH_PRELOAD = 5,
- BFD_MACH_O_MH_DYLIB = 6,
- BFD_MACH_O_MH_DYLINKER = 7,
- BFD_MACH_O_MH_BUNDLE = 8
+ BFD_MACH_O_MH_OBJECT = 0x01,
+ BFD_MACH_O_MH_EXECUTE = 0x02,
+ BFD_MACH_O_MH_FVMLIB = 0x03,
+ BFD_MACH_O_MH_CORE = 0x04,
+ BFD_MACH_O_MH_PRELOAD = 0x05,
+ BFD_MACH_O_MH_DYLIB = 0x06,
+ BFD_MACH_O_MH_DYLINKER = 0x07,
+ BFD_MACH_O_MH_BUNDLE = 0x08,
+ BFD_MACH_O_MH_DYLIB_STUB = 0x09,
+ BFD_MACH_O_MH_DSYM = 0x0a,
+ BFD_MACH_O_MH_KEXT_BUNDLE = 0x0b
}
bfd_mach_o_filetype;