diff options
| author | Kevin Enderby <enderby@apple.com> | 2017-06-19 21:23:07 +0000 |
|---|---|---|
| committer | Kevin Enderby <enderby@apple.com> | 2017-06-19 21:23:07 +0000 |
| commit | 0d5ec1170274134d266b5c777fd9d878390a4d18 (patch) | |
| tree | 88099251c080c709949059d1379afa4bd6681300 /llvm/test/tools/llvm-objdump | |
| parent | 82cd770914c9a66cadac514f6ac30296e8c8fc31 (diff) | |
| download | bcm5719-llvm-0d5ec1170274134d266b5c777fd9d878390a4d18.tar.gz bcm5719-llvm-0d5ec1170274134d266b5c777fd9d878390a4d18.zip | |
Fix a FIXME in llvm-objdump for the -exports-trie option that was not adding
in the base address.
Without this Mach-O files, like 64-bit executables, don’t have the correct
addresses printed for their exports. As the default is to link at address
0x100000000 not zero.
llvm-svn: 305744
Diffstat (limited to 'llvm/test/tools/llvm-objdump')
| -rw-r--r-- | llvm/test/tools/llvm-objdump/macho-exports-trie.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/macho-exports-trie.test b/llvm/test/tools/llvm-objdump/macho-exports-trie.test index 473c7cbfa4b..3b081f5f975 100644 --- a/llvm/test/tools/llvm-objdump/macho-exports-trie.test +++ b/llvm/test/tools/llvm-objdump/macho-exports-trie.test @@ -1,5 +1,7 @@ # RUN: llvm-objdump -macho -exports-trie -arch x86_64 \ # RUN: %p/Inputs/exports-trie.macho-x86_64 2>/dev/null | FileCheck %s +# RUN: llvm-objdump -macho -exports-trie -arch x86_64 \ +# RUN: %p/Inputs/weak-bind.macho-x86_64 2>/dev/null | FileCheck --check-prefix=EXE %s # CHECK:[re-export] _malloc (from libSystem) @@ -9,3 +11,11 @@ # CHECK:0x12345678 _myAbs [absolute] # CHECK:0x00000F60 _foo + +# EXE: 0x100000000 __mh_execute_header +# EXE: 0x100000ED0 __Znwm +# EXE: 0x100000F30 __ZdlPv +# EXE: 0x100000F40 _main +# EXE: 0x100001018 _p1 +# EXE: 0x100001020 _p2 +# EXE: 0x100001028 _p3 |

