diff options
author | Kevin Enderby <enderby@apple.com> | 2014-05-14 21:18:50 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2014-05-14 21:18:50 +0000 |
commit | 14963a696b8c4dc89409889288e85f531bd59534 (patch) | |
tree | ad667409d3bd4d20e9c5779e7818c4c0d11bbeda /test/Object/nm-universal-binary.test | |
parent | 6b543713a25c20c028cc0bbca0dd8b052c61e000 (diff) | |
download | llvm-14963a696b8c4dc89409889288e85f531bd59534.tar.gz llvm-14963a696b8c4dc89409889288e85f531bd59534.tar.bz2 llvm-14963a696b8c4dc89409889288e85f531bd59534.tar.xz |
Teach llvm-nm to know about fat archives (aka MachOUniversal files
containing archives). First step as other tools will be updated next.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208812 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Object/nm-universal-binary.test')
-rw-r--r-- | test/Object/nm-universal-binary.test | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/test/Object/nm-universal-binary.test b/test/Object/nm-universal-binary.test index 07a97f7aff..faf4812e53 100644 --- a/test/Object/nm-universal-binary.test +++ b/test/Object/nm-universal-binary.test @@ -1,6 +1,19 @@ -RUN: llvm-nm %p/Inputs/macho-universal.x86_64.i386 | FileCheck %s +RUN: llvm-nm %p/Inputs/macho-universal.x86_64.i386 \ +RUN: | FileCheck %s -check-prefix CHECK-OBJ +RUN: llvm-nm %p/Inputs/macho-universal-archive.x86_64.i386 \ +RUN: | FileCheck %s -check-prefix CHECK-AR -CHECK: macho-universal.x86_64.i386:x86_64 -CHECK: 0000000100000f60 T _main -CHECK: macho-universal.x86_64.i386:i386 -CHECK: 00001fa0 T _main +CHECK-OBJ: macho-universal.x86_64.i386:x86_64 +CHECK-OBJ: 0000000100000f60 T _main +CHECK-OBJ: macho-universal.x86_64.i386:i386 +CHECK-OBJ: 00001fa0 T _main + +CHECK-AR: macho-universal-archive.x86_64.i386:x86_64:hello.o: +CHECK-AR: 0000000000000068 s EH_frame0 +CHECK-AR: 000000000000003b s L_.str +CHECK-AR: 0000000000000000 T _main +CHECK-AR: 0000000000000080 S _main.eh +CHECK-AR: 0000000000000000 U _printf +CHECK-AR: macho-universal-archive.x86_64.i386:i386:foo.o: +CHECK-AR: 00000008 S _bar +CHECK-AR: 00000000 T _foo |