From fbe383b9ee1b597e294ee41b795308d504fd09f5 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 17 Mar 2014 09:46:07 +0100 Subject: [PATCH] mach-o: handle lasz load dylib command. 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 | 5 +++++ bfd/mach-o.c | 2 ++ binutils/ChangeLog | 4 ++++ binutils/od-macho.c | 1 + 4 files changed, 12 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6416fb546bf..47ff2313d20 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2014-03-17 Tristan Gingold + + * mach-o.c (bfd_mach_o_read_dylib): Handle lazy load dylib. + (bfd_mach_o_read_command): Ditto. + 2014-03-14 Meador Inge * configure.in: Add strnlen to AC_CHECK_DECLS. diff --git a/bfd/mach-o.c b/bfd/mach-o.c index da7f87de9e3..c77520a6654 100644 --- a/bfd/mach-o.c +++ b/bfd/mach-o.c @@ -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: diff --git a/binutils/ChangeLog b/binutils/ChangeLog index bf8d15091d0..7f212dd3d27 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2014-03-17 Tristan Gingold + + * od-macho.c (dump_load_command): Handle lazy load dylib. + 2014-03-14 Anthony Green * objcopy.c (copy_object): Check fwrite return code. diff --git a/binutils/od-macho.c b/binutils/od-macho.c index b97db0425e2..45a0beb7ac4 100644 --- a/binutils/od-macho.c +++ b/binutils/od-macho.c @@ -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: -- 2.30.2