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 | e858a65323e1b3476ecda8b9a1c2677d165c5363 (patch) | |
| tree | f44125cc2e25664e6c3b5e544c3d176aa60fba12 /llvm/test/Object | |
| parent | a0653a3e6cbc820632050bdcf27704ac52fe0559 (diff) | |
| download | bcm5719-llvm-e858a65323e1b3476ecda8b9a1c2677d165c5363.tar.gz bcm5719-llvm-e858a65323e1b3476ecda8b9a1c2677d165c5363.zip | |
Teach llvm-nm to know about fat archives (aka MachOUniversal files
containing archives). First step as other tools will be updated next.
llvm-svn: 208812
Diffstat (limited to 'llvm/test/Object')
| -rw-r--r-- | llvm/test/Object/Inputs/macho-universal-archive.x86_64.i386 | bin | 0 -> 1656 bytes | |||
| -rw-r--r-- | llvm/test/Object/nm-universal-binary.test | 23 |
2 files changed, 18 insertions, 5 deletions
diff --git a/llvm/test/Object/Inputs/macho-universal-archive.x86_64.i386 b/llvm/test/Object/Inputs/macho-universal-archive.x86_64.i386 Binary files differnew file mode 100644 index 00000000000..1660714c68e --- /dev/null +++ b/llvm/test/Object/Inputs/macho-universal-archive.x86_64.i386 diff --git a/llvm/test/Object/nm-universal-binary.test b/llvm/test/Object/nm-universal-binary.test index 07a97f7aff9..faf4812e537 100644 --- a/llvm/test/Object/nm-universal-binary.test +++ b/llvm/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 |

