[llvm-objdump] for mach-o add -bind, -lazy-bind, and -weak-bind options

This finishes the ability of llvm-objdump to print out all information from
the LC_DYLD_INFO load command.

The -bind option prints out symbolic references that dyld must resolve 
immediately.

The -lazy-bind option prints out symbolc reference that are lazily resolved on 
first use.

The -weak-bind option prints out information about symbols which dyld must
try to coalesce across images.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217853 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nick Kledzik
2014-09-16 01:41:51 +00:00
parent 2e363ece75
commit 367cf70f27
11 changed files with 544 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
# RUN: llvm-objdump -macho -lazy-bind -arch x86_64 \
# RUN: %p/Inputs/lazy-bind.macho-x86_64 | FileCheck %s
# CHECK: __DATA __la_symbol_ptr 0x100001010 libfoo.dylib _foo
# CHECK: __DATA __la_symbol_ptr 0x100001018 libbar.dylib _bar
# CHECK: __DATA __la_symbol_ptr 0x100001020 libSystem.B.dylib _malloc