xref: /aosp_15_r20/external/llvm/test/Object/nm-universal-binary.test (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard WorkerRUN: llvm-nm -arch all %p/Inputs/macho-universal.x86_64.i386 \
2*9880d681SAndroid Build Coastguard WorkerRUN:         | FileCheck %s -check-prefix CHECK-OBJ
3*9880d681SAndroid Build Coastguard WorkerRUN: llvm-nm -arch all %p/Inputs/macho-universal64.x86_64.i386 \
4*9880d681SAndroid Build Coastguard WorkerRUN:         | FileCheck %s -check-prefix CHECK-64-OBJ
5*9880d681SAndroid Build Coastguard WorkerRUN: llvm-nm -arch x86_64 %p/Inputs/macho-universal.x86_64.i386 \
6*9880d681SAndroid Build Coastguard WorkerRUN:         | FileCheck %s -check-prefix CHECK-OBJ-x86_64
7*9880d681SAndroid Build Coastguard WorkerRUN: not llvm-nm -arch armv7m %p/Inputs/macho-universal.x86_64.i386 2>&1 \
8*9880d681SAndroid Build Coastguard WorkerRUN:         | FileCheck %s -check-prefix CHECK-OBJ-armv7m
9*9880d681SAndroid Build Coastguard WorkerRUN: not llvm-nm -arch foobar %p/Inputs/macho-universal.x86_64.i386 2>&1 \
10*9880d681SAndroid Build Coastguard WorkerRUN:         | FileCheck %s -check-prefix CHECK-OBJ-foobar
11*9880d681SAndroid Build Coastguard WorkerRUN: llvm-nm -arch all %p/Inputs/macho-universal-archive.x86_64.i386 \
12*9880d681SAndroid Build Coastguard WorkerRUN:         | FileCheck %s -check-prefix CHECK-AR
13*9880d681SAndroid Build Coastguard WorkerRUN: llvm-nm -arch all %p/Inputs/macho-universal64-archive.x86_64.i386 \
14*9880d681SAndroid Build Coastguard WorkerRUN:         | FileCheck %s -check-prefix CHECK-64-AR
15*9880d681SAndroid Build Coastguard WorkerRUN: llvm-nm -arch i386 %p/Inputs/macho-universal-archive.x86_64.i386 \
16*9880d681SAndroid Build Coastguard WorkerRUN:         | FileCheck %s -check-prefix CHECK-AR-i386
17*9880d681SAndroid Build Coastguard WorkerRUN: llvm-nm -o -arch all %p/Inputs/macho-universal-archive.x86_64.i386 \
18*9880d681SAndroid Build Coastguard WorkerRUN:         | FileCheck %s -check-prefix CHECK-AR-o
19*9880d681SAndroid Build Coastguard Worker
20*9880d681SAndroid Build Coastguard WorkerCHECK-OBJ: macho-universal.x86_64.i386 (for architecture x86_64):
21*9880d681SAndroid Build Coastguard WorkerCHECK-OBJ: 0000000100000f60 T _main
22*9880d681SAndroid Build Coastguard WorkerCHECK-OBJ: macho-universal.x86_64.i386 (for architecture i386):
23*9880d681SAndroid Build Coastguard WorkerCHECK-OBJ: 00001fa0 T _main
24*9880d681SAndroid Build Coastguard Worker
25*9880d681SAndroid Build Coastguard WorkerCHECK-64-OBJ: macho-universal64.x86_64.i386 (for architecture x86_64):
26*9880d681SAndroid Build Coastguard WorkerCHECK-64-OBJ: 0000000100000f60 T _main
27*9880d681SAndroid Build Coastguard WorkerCHECK-64-OBJ: macho-universal64.x86_64.i386 (for architecture i386):
28*9880d681SAndroid Build Coastguard WorkerCHECK-64-OBJ: 00001fa0 T _main
29*9880d681SAndroid Build Coastguard Worker
30*9880d681SAndroid Build Coastguard WorkerCHECK-OBJ-x86_64: 0000000100000000 T __mh_execute_header
31*9880d681SAndroid Build Coastguard WorkerCHECK-OBJ-x86_64: 0000000100000f60 T _main
32*9880d681SAndroid Build Coastguard WorkerCHECK-OBJ-x86_64:                  U dyld_stub_binder
33*9880d681SAndroid Build Coastguard Worker
34*9880d681SAndroid Build Coastguard WorkerCHECK-OBJ-armv7m-NOT: Unknown architecture named
35*9880d681SAndroid Build Coastguard WorkerCHECK-OBJ-armv7m: does not contain architecture
36*9880d681SAndroid Build Coastguard Worker
37*9880d681SAndroid Build Coastguard WorkerCHECK-OBJ-foobar: Unknown architecture named
38*9880d681SAndroid Build Coastguard WorkerCHECK-OBJ-foobar: does not contain architecture
39*9880d681SAndroid Build Coastguard Worker
40*9880d681SAndroid Build Coastguard WorkerCHECK-AR: macho-universal-archive.x86_64.i386(hello.o) (for architecture x86_64):
41*9880d681SAndroid Build Coastguard WorkerCHECK-AR: 0000000000000068 s EH_frame0
42*9880d681SAndroid Build Coastguard WorkerCHECK-AR: 000000000000003b s L_.str
43*9880d681SAndroid Build Coastguard WorkerCHECK-AR: 0000000000000000 T _main
44*9880d681SAndroid Build Coastguard WorkerCHECK-AR: 0000000000000080 S _main.eh
45*9880d681SAndroid Build Coastguard WorkerCHECK-AR:                  U _printf
46*9880d681SAndroid Build Coastguard WorkerCHECK-AR: macho-universal-archive.x86_64.i386(foo.o) (for architecture i386):
47*9880d681SAndroid Build Coastguard WorkerCHECK-AR: 00000008 D _bar
48*9880d681SAndroid Build Coastguard WorkerCHECK-AR: 00000000 T _foo
49*9880d681SAndroid Build Coastguard Worker
50*9880d681SAndroid Build Coastguard WorkerCHECK-64-AR: macho-universal64-archive.x86_64.i386(foo.o) (for architecture i386):
51*9880d681SAndroid Build Coastguard WorkerCHECK-64-AR: 00000008 D _bar
52*9880d681SAndroid Build Coastguard WorkerCHECK-64-AR: 00000000 T _foo
53*9880d681SAndroid Build Coastguard WorkerCHECK-64-AR: macho-universal64-archive.x86_64.i386(hello.o) (for architecture x86_64):
54*9880d681SAndroid Build Coastguard WorkerCHECK-64-AR: 0000000000000068 s EH_frame0
55*9880d681SAndroid Build Coastguard WorkerCHECK-64-AR: 000000000000003b s L_.str
56*9880d681SAndroid Build Coastguard WorkerCHECK-64-AR: 0000000000000000 T _main
57*9880d681SAndroid Build Coastguard WorkerCHECK-64-AR: 0000000000000080 S _main.eh
58*9880d681SAndroid Build Coastguard WorkerCHECK-64-AR:                  U _printf
59*9880d681SAndroid Build Coastguard Worker
60*9880d681SAndroid Build Coastguard WorkerCHECK-AR-i386: macho-universal-archive.x86_64.i386(foo.o):
61*9880d681SAndroid Build Coastguard WorkerCHECK-AR-i386: 00000008 D _bar
62*9880d681SAndroid Build Coastguard WorkerCHECK-AR-i386: 00000000 T _foo
63*9880d681SAndroid Build Coastguard Worker
64*9880d681SAndroid Build Coastguard WorkerCHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o: 0000000000000068 s EH_frame0
65*9880d681SAndroid Build Coastguard WorkerCHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o: 000000000000003b s L_.str
66*9880d681SAndroid Build Coastguard WorkerCHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o: 0000000000000000 T _main
67*9880d681SAndroid Build Coastguard WorkerCHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o: 0000000000000080 S _main.eh
68*9880d681SAndroid Build Coastguard WorkerCHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o:                  U _printf
69*9880d681SAndroid Build Coastguard WorkerCHECK-AR-o: (for architecture i386):{{.*}}/macho-universal-archive.x86_64.i386:foo.o: 00000008 D _bar
70*9880d681SAndroid Build Coastguard WorkerCHECK-AR-o: (for architecture i386):{{.*}}/macho-universal-archive.x86_64.i386:foo.o: 00000000 T _foo
71