diff options
Diffstat (limited to 'llvm/tools/llvm-objdump')
-rw-r--r-- | llvm/tools/llvm-objdump/MachODump.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/tools/llvm-objdump/MachODump.cpp b/llvm/tools/llvm-objdump/MachODump.cpp index b684daacb61..58ff7be4543 100644 --- a/llvm/tools/llvm-objdump/MachODump.cpp +++ b/llvm/tools/llvm-objdump/MachODump.cpp @@ -1206,7 +1206,16 @@ static void PrintDylibs(MachOObjectFile *O, bool JustId) { outs() << " current version " << ((dl.dylib.current_version >> 16) & 0xffff) << "." << ((dl.dylib.current_version >> 8) & 0xff) << "." - << (dl.dylib.current_version & 0xff) << ")\n"; + << (dl.dylib.current_version & 0xff); + if (Load.C.cmd == MachO::LC_LOAD_WEAK_DYLIB) + outs() << ", weak"; + if (Load.C.cmd == MachO::LC_REEXPORT_DYLIB) + outs() << ", reexport"; + if (Load.C.cmd == MachO::LC_LOAD_UPWARD_DYLIB) + outs() << ", upward"; + if (Load.C.cmd == MachO::LC_LAZY_LOAD_DYLIB) + outs() << ", lazy"; + outs() << ")\n"; } } else { outs() << "\tBad offset (" << dl.dylib.name << ") for name of "; |