xref: /aosp_15_r20/external/llvm/test/Object/nm-darwin-m.test (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard WorkerRUN: llvm-nm -format darwin %p/Inputs/darwin-m-test1.mach0-armv7 \
2*9880d681SAndroid Build Coastguard WorkerRUN:         | FileCheck %s -check-prefix test1
3*9880d681SAndroid Build Coastguard WorkerRUN: llvm-nm -format darwin %p/Inputs/darwin-m-test2.macho-i386 \
4*9880d681SAndroid Build Coastguard WorkerRUN:         | FileCheck %s -check-prefix test2
5*9880d681SAndroid Build Coastguard WorkerRUN: llvm-nm -m %p/Inputs/darwin-m-test3.macho-x86-64 \
6*9880d681SAndroid Build Coastguard WorkerRUN:         | FileCheck %s -check-prefix test3
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker# This is testing that the various bits in the n_desc feild are correct
9*9880d681SAndroid Build Coastguard Workertest1: 00000001 (absolute) non-external _a
10*9880d681SAndroid Build Coastguard Workertest1: 00000008 (common) (alignment 2^2) external _c
11*9880d681SAndroid Build Coastguard Workertest1: 0000000a (__DATA,__data) non-external [no dead strip] _d
12*9880d681SAndroid Build Coastguard Workertest1: 00000004 (__TEXT,__text) non-external [alt entry] _e
13*9880d681SAndroid Build Coastguard Workertest1: 00000000 (__TEXT,__text) non-external [symbol resolver] _r
14*9880d681SAndroid Build Coastguard Workertest1: 00000008 (__TEXT,__text) non-external [Thumb] _t
15*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard Worker# This is testing that an N_INDR symbol gets its alias name, the "(for ...)"
17*9880d681SAndroid Build Coastguard Workertest2:          (undefined) external __i
18*9880d681SAndroid Build Coastguard Workertest2:          (indirect) external _i (for __i)
19*9880d681SAndroid Build Coastguard Worker
20*9880d681SAndroid Build Coastguard Worker# This is testing is using darwin-m-test3.macho-x86-64 that is linked with
21*9880d681SAndroid Build Coastguard Worker# dylibs that have the follow set of -install_names:
22*9880d681SAndroid Build Coastguard Worker#	Foo.framework/Foo
23*9880d681SAndroid Build Coastguard Worker#	/System/Library/Frameworks/FooPath.framework/FooPath
24*9880d681SAndroid Build Coastguard Worker#	FooSuffix.framework/FooSuffix_debug
25*9880d681SAndroid Build Coastguard Worker#	/System/Library/Frameworks/FooPathSuffix.framework/FooPathSuffix_profile
26*9880d681SAndroid Build Coastguard Worker#	FooVers.framework/Versions/A/FooVers
27*9880d681SAndroid Build Coastguard Worker#	/System/Library/Frameworks/FooPathVers.framework/Versions/B/FooPathVers
28*9880d681SAndroid Build Coastguard Worker#	libx.dylib
29*9880d681SAndroid Build Coastguard Worker#	libxSuffix_profile.dylib
30*9880d681SAndroid Build Coastguard Worker#	/usr/local/lib/libxPathSuffix_debug.dylib
31*9880d681SAndroid Build Coastguard Worker#	libATS.A_profile.dylib
32*9880d681SAndroid Build Coastguard Worker#	/usr/lib/libPathATS.A_profile.dylib
33*9880d681SAndroid Build Coastguard Worker#	QT.A.qtx
34*9880d681SAndroid Build Coastguard Worker#	/lib/QTPath.qtx
35*9880d681SAndroid Build Coastguard Worker#	/usr/lib/libSystem.B.dylib
36*9880d681SAndroid Build Coastguard Worker# to test that MachOObjectFile::guessLibraryShortName() is correctly parsing
37*9880d681SAndroid Build Coastguard Worker# them into their short names.
38*9880d681SAndroid Build Coastguard Workertest3: 0000000100000000 (__TEXT,__text) [referenced dynamically] external __mh_execute_header
39*9880d681SAndroid Build Coastguard Workertest3:                  (undefined) external _atsPathVersSuffix (from libPathATS)
40*9880d681SAndroid Build Coastguard Workertest3:                  (undefined) external _atsVersSuffix (from libATS)
41*9880d681SAndroid Build Coastguard Workertest3:                  (undefined) external _foo (from Foo)
42*9880d681SAndroid Build Coastguard Workertest3:                  (undefined) external _fooPath (from FooPath)
43*9880d681SAndroid Build Coastguard Workertest3:                  (undefined) external _fooPathSuffix (from FooPathSuffix)
44*9880d681SAndroid Build Coastguard Workertest3:                  (undefined) external _fooPathVers (from FooPathVers)
45*9880d681SAndroid Build Coastguard Workertest3:                  (undefined) external _fooSuffix (from FooSuffix)
46*9880d681SAndroid Build Coastguard Workertest3:                  (undefined) external _fooVers (from FooVers)
47*9880d681SAndroid Build Coastguard Workertest3: 0000000100000e60 (__TEXT,__text) external _main
48*9880d681SAndroid Build Coastguard Workertest3:                  (undefined) external _qt (from QT)
49*9880d681SAndroid Build Coastguard Workertest3:                  (undefined) external _qtPath (from QTPath)
50*9880d681SAndroid Build Coastguard Workertest3:                  (undefined) external _x (from libx)
51*9880d681SAndroid Build Coastguard Workertest3:                  (undefined) external _xPathSuffix (from libxPathSuffix)
52*9880d681SAndroid Build Coastguard Workertest3:                  (undefined) external _xSuffix (from libxSuffix)
53*9880d681SAndroid Build Coastguard Workertest3:                  (undefined) external dyld_stub_binder (from libSystem)
54