brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.0 KiB · f0e5c0a Raw
58 lines · plain
1RUN: llvm-nm --format=darwin %p/Inputs/darwin-m-test1.mach0-armv7 \2RUN:         | FileCheck %s -check-prefix test13RUN: llvm-nm --format=darwin %p/Inputs/darwin-m-test2.macho-i386 \4RUN:         | FileCheck %s -check-prefix test25RUN: llvm-nm -m %p/Inputs/darwin-m-test3.macho-x86-64 \6RUN:         | FileCheck %s -check-prefix test37 8# This is testing that the various bits in the n_desc feild are correct9test1: 00000001 (absolute) non-external _a10test1: 00000008 (common) (alignment 2^2) external _c11test1: 0000000a (__DATA,__data) non-external [no dead strip] _d12test1: 00000004 (__TEXT,__text) non-external [alt entry] _e13test1: 00000000 (__TEXT,__text) non-external [symbol resolver] _r14test1: 00000008 (__TEXT,__text) non-external [Thumb] _t15 16# This is testing that an N_INDR symbol gets its alias name, the "(for ...)"17test2:          (undefined) external __i18test2:          (indirect) external _i (for __i)19 20# This is testing is using darwin-m-test3.macho-x86-64 that is linked with21# dylibs that have the follow set of -install_names:22#	Foo.framework/Foo23#	/System/Library/Frameworks/FooPath.framework/FooPath24#	FooSuffix.framework/FooSuffix_debug25#	/System/Library/Frameworks/FooPathSuffix.framework/FooPathSuffix_profile26#	FooVers.framework/Versions/A/FooVers27#	/System/Library/Frameworks/FooPathVers.framework/Versions/B/FooPathVers28#	libx.dylib29#	libxSuffix_profile.dylib30#	/usr/local/lib/libxPathSuffix_debug.dylib31#	libATS.A_profile.dylib32#	/usr/lib/libPathATS.A_profile.dylib33#	QT.A.qtx34#	/lib/QTPath.qtx35#	/usr/lib/libfoo_bar.dylib36#	/usr/lib/libfoo_bar_profile.dylib37#	/usr/lib/libSystem.B.dylib38# to test that MachOObjectFile::guessLibraryShortName() is correctly parsing39# them into their short names.40test3: 0000000100000000 (__TEXT,__text) [referenced dynamically] external __mh_execute_header41test3:                  (undefined) external _atsPathVersSuffix (from libPathATS)42test3:                  (undefined) external _atsVersSuffix (from libATS)43test3:                  (undefined) external _foo (from Foo)44test3:                  (undefined) external _fooPath (from FooPath)45test3:                  (undefined) external _fooPathSuffix (from FooPathSuffix)46test3:                  (undefined) external _fooPathVers (from FooPathVers)47test3:                  (undefined) external _fooSuffix (from FooSuffix)48test3:                  (undefined) external _fooVers (from FooVers)49test3:                  (undefined) external _foo_bar (from libfoo_bar)50test3:                  (undefined) external _foo_barSuffix (from libfoo_barSuffix)51test3: 0000000100000e50 (__TEXT,__text) external _main52test3:                  (undefined) external _qt (from QT)53test3:                  (undefined) external _qtPath (from QTPath)54test3:                  (undefined) external _x (from libx)55test3:                  (undefined) external _xPathSuffix (from libxPathSuffix)56test3:                  (undefined) external _xSuffix (from libxSuffix)57test3:                  (undefined) external dyld_stub_binder (from libSystem)58