mach-o: handle lasz load dylib command.
authorTristan Gingold <tristan.gingold@adacore.com>
Mon, 17 Mar 2014 08:46:07 +0000 (09:46 +0100)
committerTristan Gingold <tristan.gingold@adacore.com>
Mon, 17 Mar 2014 09:14:23 +0000 (10:14 +0100)
bfd/
* mach-o.c (bfd_mach_o_read_dylib): Handle lazy load dylib.
(bfd_mach_o_read_command): Ditto.

binutils/
* od-macho.c (dump_load_command): Handle lazy load dylib.

bfd/ChangeLog
bfd/mach-o.c
binutils/ChangeLog
binutils/od-macho.c

index 6416fb546bf92440035028fb248bf6f7cf8d8682..47ff2313d20b7ef7f10920188653b5fe4b059097 100644 (file)
@@ -1,3 +1,8 @@
+2014-03-17  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_read_dylib): Handle lazy load dylib.
+       (bfd_mach_o_read_command): Ditto.
+
 2014-03-14  Meador Inge  <meadori@codesourcery.com>
 
         * configure.in: Add strnlen to AC_CHECK_DECLS.
index da7f87de9e39fc2786a2cfbd6aa2e8fb38a8d8c4..c77520a66544e71beb79a11c467fe013126cd9ac 100644 (file)
@@ -3172,6 +3172,7 @@ bfd_mach_o_read_dylib (bfd *abfd, bfd_mach_o_load_command *command)
   switch (command->type)
     {
     case BFD_MACH_O_LC_LOAD_DYLIB:
+    case BFD_MACH_O_LC_LAZY_LOAD_DYLIB:
     case BFD_MACH_O_LC_LOAD_WEAK_DYLIB:
     case BFD_MACH_O_LC_ID_DYLIB:
     case BFD_MACH_O_LC_REEXPORT_DYLIB:
@@ -3841,6 +3842,7 @@ bfd_mach_o_read_command (bfd *abfd, bfd_mach_o_load_command *command)
        return -1;
       break;
     case BFD_MACH_O_LC_LOAD_DYLIB:
+    case BFD_MACH_O_LC_LAZY_LOAD_DYLIB:
     case BFD_MACH_O_LC_ID_DYLIB:
     case BFD_MACH_O_LC_LOAD_WEAK_DYLIB:
     case BFD_MACH_O_LC_REEXPORT_DYLIB:
index bf8d15091d0bad3381ea812ce6c056c915afc2ff..7f212dd3d27ff997a09af0443ae023e4ba512154 100644 (file)
@@ -1,3 +1,7 @@
+2014-03-17  Tristan Gingold  <gingold@adacore.com>
+
+       * od-macho.c (dump_load_command): Handle lazy load dylib.
+
 2014-03-14  Anthony Green  <green@moxielogic.com>
 
        * objcopy.c (copy_object): Check fwrite return code.
index b97db0425e268ce125cf27a053ef8d17dff0a2d8..45a0beb7ac45195f2a1a56fd4372b1c5092275be 100644 (file)
@@ -938,6 +938,7 @@ dump_load_command (bfd *abfd, bfd_mach_o_load_command *cmd,
       }
       break;
     case BFD_MACH_O_LC_LOAD_DYLIB:
+    case BFD_MACH_O_LC_LAZY_LOAD_DYLIB:
     case BFD_MACH_O_LC_LOAD_WEAK_DYLIB:
     case BFD_MACH_O_LC_REEXPORT_DYLIB:
     case BFD_MACH_O_LC_ID_DYLIB: