bfd/
authorTristan Gingold <gingold@adacore.com>
Mon, 8 Aug 2011 10:21:02 +0000 (10:21 +0000)
committerTristan Gingold <gingold@adacore.com>
Mon, 8 Aug 2011 10:21:02 +0000 (10:21 +0000)
commitedbdea0ed776219d6ce4584a05213ec210b779f9
tree1d1f2ccf0056156eed3184dbef6d3044b8c512de
parent46d1c23bceb2b8923af0d00a7f536a88524d6a74
bfd/
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* mach-o.h (bfd_mach_o_version_min_command): New structure.
(bfd_mach_o_load_command): Add version_min.
(mach_o_data_struct): Fix comment.
* mach-o.c (bfd_mach_o_read_version_min): New function.
(bfd_mach_o_read_command): Handle BFD_MACH_O_LC_FUNCTION_STARTS,
BFD_MACH_O_LC_VERSION_MIN_MACOSX and
BFD_MACH_O_LC_VERSION_MIN_IPHONEOS.
(bfd_mach_o_get_name_or_null): New function.
(bfd_mach_o_get_name): Use the above new one.
(bfd_mach_o_load_command_name): Add the above new commands.
(bfd_mach_o_bfd_print_private_bfd_data): Display numerically
unknown commands.  Handle BFD_MACH_O_LC_FUNCTION_STARTS,
BFD_MACH_O_LC_VERSION_MIN_MACOSX and
BFD_MACH_O_LC_VERSION_MIN_IPHONEOS.

include/mach-o/
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* loader.h (bfd_mach_o_load_command_type): Add
BFD_MACH_O_LC_LOAD_UPWARD_DYLIB, BFD_MACH_O_LC_VERSION_MIN_MACOSX,
BFD_MACH_O_LC_VERSION_MIN_IPHONEOS, BFD_MACH_O_LC_FUNCTION_STARTS,
and BFD_MACH_O_LC_DYLD_ENVIRONMENT.
* external.h (mach_o_version_min_command_external): New structure.
bfd/ChangeLog
bfd/mach-o.c
bfd/mach-o.h
include/mach-o/ChangeLog
include/mach-o/external.h
include/mach-o/loader.h