2011-12-05 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Mon, 5 Dec 2011 14:10:11 +0000 (14:10 +0000)
committerTristan Gingold <gingold@adacore.com>
Mon, 5 Dec 2011 14:10:11 +0000 (14:10 +0000)
* 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.

bfd/ChangeLog
bfd/mach-o.c

index 4b1e081008c6d02f5e4cee73b57b5eaf2b818aab..7d96b5f8f5284c03d6b0752428e9e09b35029f2f 100644 (file)
@@ -1,3 +1,10 @@
+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.
+
 2011-12-05  Tristan Gingold  <gingold@adacore.com>
 
        * mach-o.c (bfd_mach_o_read_command): Add the bfd in the error
index edb4c21a90354d229531c1fd51f4778f017458b5..4412b0b98bcb7645ea2935896c00aa5c7b39406e 100644 (file)
@@ -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;