This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed] Darwin: handle LC_LOAD_UPWARD_DYLIB
- From: Tristan Gingold <gingold at adacore dot com>
- To: binutils Development <binutils at sourceware dot org>
- Date: Mon, 5 Dec 2011 15:09:46 +0100
- Subject: [committed] Darwin: handle LC_LOAD_UPWARD_DYLIB
Hi,
this patch handles this new load command, added by Darwin-11 (Lion).
Committed on trunk.
Tristan.
bfd/
2011-12-05 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_write_contents): Handle LC_LOAD_UPWARD_DYLIB.
(bfd_mach_o_read_dylib): Likewise.
(bfd_mach_o_read_command): Likewise.
(bfd_mach_o_bfd_print_private_bfd_data): Likewise.
cvs diff: Diffing .
Index: mach-o.c
===================================================================
RCS file: /cvs/src/src/bfd/mach-o.c,v
retrieving revision 1.69
diff -c -r1.69 mach-o.c
*** mach-o.c 5 Dec 2011 13:48:54 -0000 1.69
--- mach-o.c 5 Dec 2011 14:06:39 -0000
***************
*** 1294,1299 ****
--- 1294,1300 ----
case BFD_MACH_O_LC_LOAD_WEAK_DYLIB:
case BFD_MACH_O_LC_ID_DYLIB:
case BFD_MACH_O_LC_REEXPORT_DYLIB:
+ case BFD_MACH_O_LC_LOAD_UPWARD_DYLIB:
case BFD_MACH_O_LC_LOAD_DYLINKER:
case BFD_MACH_O_LC_ID_DYLINKER:
case BFD_MACH_O_LC_PREBOUND_DYLIB:
***************
*** 2100,2105 ****
--- 2101,2107 ----
case BFD_MACH_O_LC_LOAD_WEAK_DYLIB:
case BFD_MACH_O_LC_ID_DYLIB:
case BFD_MACH_O_LC_REEXPORT_DYLIB:
+ case BFD_MACH_O_LC_LOAD_UPWARD_DYLIB:
break;
default:
BFD_FAIL ();
***************
*** 2684,2689 ****
--- 2686,2692 ----
case BFD_MACH_O_LC_ID_DYLIB:
case BFD_MACH_O_LC_LOAD_WEAK_DYLIB:
case BFD_MACH_O_LC_REEXPORT_DYLIB:
+ case BFD_MACH_O_LC_LOAD_UPWARD_DYLIB:
if (bfd_mach_o_read_dylib (abfd, command) != 0)
return -1;
break;
***************
*** 3951,3956 ****
--- 3954,3960 ----
case BFD_MACH_O_LC_LOAD_DYLIB:
case BFD_MACH_O_LC_LOAD_WEAK_DYLIB:
case BFD_MACH_O_LC_REEXPORT_DYLIB:
+ case BFD_MACH_O_LC_LOAD_UPWARD_DYLIB:
case BFD_MACH_O_LC_ID_DYLIB:
{
bfd_mach_o_dylib_command *dylib = &cmd->command.dylib;