From: Tristan Gingold Date: Mon, 5 Dec 2011 14:10:11 +0000 (+0000) Subject: 2011-12-05 Tristan Gingold X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=73017762b2a38355a291e6d3239ac60bb015edaf;p=binutils-gdb.git 2011-12-05 Tristan Gingold * 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. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4b1e081008c..7d96b5f8f52 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2011-12-05 Tristan Gingold + + * 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. + 2011-12-05 Tristan Gingold * mach-o.c (bfd_mach_o_read_command): Add the bfd in the error diff --git a/bfd/mach-o.c b/bfd/mach-o.c index edb4c21a903..4412b0b98bc 100644 --- a/bfd/mach-o.c +++ b/bfd/mach-o.c @@ -1294,6 +1294,7 @@ bfd_mach_o_write_contents (bfd *abfd) 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,6 +2101,7 @@ bfd_mach_o_read_dylib (bfd *abfd, bfd_mach_o_load_command *command) 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,6 +2686,7 @@ bfd_mach_o_read_command (bfd *abfd, bfd_mach_o_load_command *command) 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,6 +3954,7 @@ bfd_mach_o_bfd_print_private_bfd_data (bfd *abfd, void * ptr) 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;