Mach-O: Add objdump -P dyld_info to dump dyld data.
authorTristan Gingold <tristan.gingold@adacore.com>
Fri, 11 Apr 2014 15:10:03 +0000 (17:10 +0200)
committerTristan Gingold <tristan.gingold@adacore.com>
Wed, 16 Apr 2014 10:16:02 +0000 (12:16 +0200)
commite89d3dee76bc7f2d4b967ce9238f7f22e0a7c147
treefdb78bc6642e48e00204372780b6222b758c9a9a
parent47f8a1070c0619bf7698e6584f7196f06e529da0
Mach-O: Add objdump -P dyld_info to dump dyld data.

include/mach-o/
* loader.h: Add macros for rebase, bind and export constants.

binutils/
* od-macho.c (OPT_DYLD_INFO): New macro.
(options): Add entry for dyld_info.
(mach_o_help): Likewise.
(load_and_dump, dump_dyld_info_rebase, dump_dyld_info_bind)
(dump_dyld_info_export_1, dump_dyld_info_export): New functions.
(bfd_mach_o_dyld_rebase_type_name): New array.
(export_info_data): New struct.
(dump_dyld_info): Add verbose argument.  Dump rebase, bind and
exports data.
(dump_load_command): Adjust dump_dyld_info call.
(mach_o_dump): Handle dyld_info.
binutils/ChangeLog
binutils/od-macho.c
include/mach-o/ChangeLog
include/mach-o/loader.h