Kevin Enderby | 4c8dfe4 | 2014-06-30 18:45:23 +0000 | [diff] [blame] | 1 | RUN: llvm-nm -arch all %p/Inputs/macho-universal.x86_64.i386 \ |
Kevin Enderby | e858a65 | 2014-05-14 21:18:50 +0000 | [diff] [blame] | 2 | RUN: | FileCheck %s -check-prefix CHECK-OBJ |
Kevin Enderby | 4c8dfe4 | 2014-06-30 18:45:23 +0000 | [diff] [blame] | 3 | RUN: llvm-nm -arch x86_64 %p/Inputs/macho-universal.x86_64.i386 \ |
| 4 | RUN: | FileCheck %s -check-prefix CHECK-OBJ-x86_64 |
| 5 | RUN: llvm-nm -arch all %p/Inputs/macho-universal-archive.x86_64.i386 \ |
Kevin Enderby | e858a65 | 2014-05-14 21:18:50 +0000 | [diff] [blame] | 6 | RUN: | FileCheck %s -check-prefix CHECK-AR |
Kevin Enderby | 4c8dfe4 | 2014-06-30 18:45:23 +0000 | [diff] [blame] | 7 | RUN: llvm-nm -arch i386 %p/Inputs/macho-universal-archive.x86_64.i386 \ |
| 8 | RUN: | FileCheck %s -check-prefix CHECK-AR-i386 |
Kevin Enderby | 08e1bbd | 2014-07-24 23:31:52 +0000 | [diff] [blame] | 9 | RUN: llvm-nm -o -arch all %p/Inputs/macho-universal-archive.x86_64.i386 \ |
| 10 | RUN: | FileCheck %s -check-prefix CHECK-AR-o |
Alexey Samsonov | e6388e6 | 2013-06-18 15:03:28 +0000 | [diff] [blame] | 11 | |
Kevin Enderby | 1983fcf | 2014-06-19 22:03:18 +0000 | [diff] [blame] | 12 | CHECK-OBJ: macho-universal.x86_64.i386 (for architecture x86_64): |
Kevin Enderby | e858a65 | 2014-05-14 21:18:50 +0000 | [diff] [blame] | 13 | CHECK-OBJ: 0000000100000f60 T _main |
Kevin Enderby | 1983fcf | 2014-06-19 22:03:18 +0000 | [diff] [blame] | 14 | CHECK-OBJ: macho-universal.x86_64.i386 (for architecture i386): |
Kevin Enderby | e858a65 | 2014-05-14 21:18:50 +0000 | [diff] [blame] | 15 | CHECK-OBJ: 00001fa0 T _main |
| 16 | |
Kevin Enderby | 4c8dfe4 | 2014-06-30 18:45:23 +0000 | [diff] [blame] | 17 | CHECK-OBJ-x86_64: 0000000100000000 T __mh_execute_header |
| 18 | CHECK-OBJ-x86_64: 0000000100000f60 T _main |
| 19 | CHECK-OBJ-x86_64: U dyld_stub_binder |
| 20 | |
Kevin Enderby | 1983fcf | 2014-06-19 22:03:18 +0000 | [diff] [blame] | 21 | CHECK-AR: macho-universal-archive.x86_64.i386(hello.o) (for architecture x86_64): |
Kevin Enderby | e858a65 | 2014-05-14 21:18:50 +0000 | [diff] [blame] | 22 | CHECK-AR: 0000000000000068 s EH_frame0 |
| 23 | CHECK-AR: 000000000000003b s L_.str |
| 24 | CHECK-AR: 0000000000000000 T _main |
| 25 | CHECK-AR: 0000000000000080 S _main.eh |
Kevin Enderby | 1b985af | 2014-05-20 23:04:47 +0000 | [diff] [blame] | 26 | CHECK-AR: U _printf |
Kevin Enderby | 1983fcf | 2014-06-19 22:03:18 +0000 | [diff] [blame] | 27 | CHECK-AR: macho-universal-archive.x86_64.i386(foo.o) (for architecture i386): |
Kevin Enderby | 1e1b992 | 2014-06-19 22:49:21 +0000 | [diff] [blame] | 28 | CHECK-AR: 00000008 D _bar |
Kevin Enderby | e858a65 | 2014-05-14 21:18:50 +0000 | [diff] [blame] | 29 | CHECK-AR: 00000000 T _foo |
Kevin Enderby | 4c8dfe4 | 2014-06-30 18:45:23 +0000 | [diff] [blame] | 30 | |
| 31 | CHECK-AR-i386: macho-universal-archive.x86_64.i386(foo.o): |
| 32 | CHECK-AR-i386: 00000008 D _bar |
| 33 | CHECK-AR-i386: 00000000 T _foo |
Kevin Enderby | 08e1bbd | 2014-07-24 23:31:52 +0000 | [diff] [blame] | 34 | |
| 35 | CHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o: 0000000000000068 s EH_frame0 |
| 36 | CHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o: 000000000000003b s L_.str |
| 37 | CHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o: 0000000000000000 T _main |
| 38 | CHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o: 0000000000000080 S _main.eh |
| 39 | CHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o: U _printf |
| 40 | CHECK-AR-o: (for architecture i386):{{.*}}/macho-universal-archive.x86_64.i386:foo.o: 00000008 D _bar |
| 41 | CHECK-AR-o: (for architecture i386):{{.*}}/macho-universal-archive.x86_64.i386:foo.o: 00000000 T _foo |