diff options
author | Nick Kledzik <kledzik@apple.com> | 2014-09-16 01:41:51 +0000 |
---|---|---|
committer | Nick Kledzik <kledzik@apple.com> | 2014-09-16 01:41:51 +0000 |
commit | 56ebef45efe4807fba24d61f97eface88a6e2b46 (patch) | |
tree | a2d35290a0cef4b437a78b0ce1e060ba90f3af47 /llvm/test/tools/llvm-objdump/macho-bind.test | |
parent | b01fe40c07747f8353584d3fb9a1e066565ae24c (diff) | |
download | bcm5719-llvm-56ebef45efe4807fba24d61f97eface88a6e2b46.tar.gz bcm5719-llvm-56ebef45efe4807fba24d61f97eface88a6e2b46.zip |
[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.
llvm-svn: 217853
Diffstat (limited to 'llvm/test/tools/llvm-objdump/macho-bind.test')
-rw-r--r-- | llvm/test/tools/llvm-objdump/macho-bind.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/macho-bind.test b/llvm/test/tools/llvm-objdump/macho-bind.test new file mode 100644 index 00000000000..0db316fb6fe --- /dev/null +++ b/llvm/test/tools/llvm-objdump/macho-bind.test @@ -0,0 +1,10 @@ +# RUN: llvm-objdump -macho -bind -arch x86_64 \ +# RUN: %p/Inputs/bind.macho-x86_64 | FileCheck %s + + +# CHECK:__DATA __data 0x00001028 pointer 0 flat-namespace _any +# CHECK:__DATA __data 0x00001020 pointer 0 main-executable _fromApp +# CHECK:__DATA __data 0x00001018 pointer 0 this-image _myfunc +# CHECK:__DATA __data 0x00001000 pointer 0 libfoo.dylib _foo +# CHECK:__DATA __data 0x00001008 pointer 0 libbar.dylib _bar +# CHECK:__DATA __data 0x00001010 pointer 0 libSystem.B.dylib _malloc |