Home
last modified time | relevance | path

Searched refs:lld (Results 1 – 25 of 2341) sorted by relevance

12345678910>>...94

/llvm-project-15.0.7/lld/test/MinGW/
H A Ddriver.test1 RUN: ld.lld -### foo.o -m i386pe 2>&1 | FileCheck -check-prefix=X86 %s
8 RUN: ld.lld @%t.rsp 2>&1 | FileCheck -check-prefix=X86 %s
10 RUN: ld.lld -### foo.o -m i386pep 2>&1 | FileCheck -check-prefix=X64 %s
16 RUN: ld.lld -### foo.o -m thumb2pe 2>&1 | FileCheck -check-prefix=ARM %s
22 RUN: ld.lld -### foo.o -m arm64pe 2>&1 | FileCheck -check-prefix=ARM64 %s
106 MINGW-FLAG: lld-link -lldmingw
125 RUN: ld.lld -### -m i386pep foo.o 2>&1 | FileCheck -check-prefix DEBUG %s
216 RUN: ld.lld -### -m i386pep --start-group foo.o --end-group 2> /dev/null
250 RUN: ld.lld -m i386pep --version 2>&1 | FileCheck -check-prefix=VERSION %s
251 RUN: ld.lld -m i386pep -v 2>&1 | FileCheck -check-prefix=VERSION %s
[all …]
H A Dlib.test3 RUN: not ld.lld -### -m i386pep -lfoo -L%t/lib 2>&1 | FileCheck -check-prefix=LIB1 %s
7 RUN: ld.lld -### -m i386pep -lfoo -L%t/lib 2>&1 | FileCheck -check-prefix=LIB2 %s
14 RUN: ld.lld -### -m i386pep -l:barefilename -L%t/lib 2>&1 | FileCheck -check-prefix=LIB-LITERAL %s
17 RUN: not ld.lld -### -m i386pep -Bstatic -lfoo -L%t/lib 2>&1 | FileCheck -check-prefix=LIB3 %s
18 RUN: not ld.lld -### -m i386pep -dn -lfoo -L%t/lib 2>&1 | FileCheck -check-prefix=LIB3 %s
19 RUN: not ld.lld -### -m i386pep -static -lfoo -L%t/lib 2>&1 | FileCheck -check-prefix=LIB3 %s
20 RUN: not ld.lld -### -m i386pep -non_shared -lfoo -L%t/lib 2>&1 | FileCheck -check-prefix=LIB3 %s
24 RUN: ld.lld -### -m i386pep -Bstatic -lfoo -L%t/lib 2>&1 | FileCheck -check-prefix=LIB4 %s
30 RUN: ld.lld -### -m i386pep -Bstatic -lfoo -dy -lbar -L%t/lib 2>&1 | FileCheck -check-prefix=LIB5 %s
43 RUN: ld.lld -### -m i386pep -L%t/lib -lnoimplib 2>&1 | FileCheck -check-prefix=DLL1 %s
[all …]
/llvm-project-15.0.7/llvm/test/MC/Mips/
H A Dlld-expansion.s6 lld $2, 128($sp) label
10 lld $2, -128($sp) label
14 lld $2, 256($sp) label
20 lld $2, -257($sp) label
26 lld $2, 32767($sp) label
32 lld $2, 32768($sp) label
41 lld $2, -32768($sp) label
47 lld $2, -32769($sp) label
95 lld $12, symbol label
145 lld $12, symbol+8 label
[all …]
/llvm-project-15.0.7/llvm/utils/gn/secondary/lld/tools/lld/
H A DBUILD.gn4 "lld-link",
5 "ld.lld",
6 "ld64.lld",
11 deps = [ ":lld" ]
12 source = "lld"
19 deps = [ ":lld" ]
25 executable("lld") {
28 "//lld/COFF",
29 "//lld/ELF",
31 "//lld/MinGW",
[all …]
/llvm-project-15.0.7/lld/test/
H A DCMakeLists.txt19 set(LLD_TEST_DEPS lld)
59 add_lit_testsuite(check-lld "Running lld test suite"
64 add_custom_target(lld-test-depends DEPENDS ${LLD_TEST_DEPS})
65 set_target_properties(lld-test-depends PROPERTIES FOLDER "lld tests")
71 set_target_properties(check-lld PROPERTIES FOLDER "lld tests")
73 # Add a legacy target spelling: lld-test
74 add_custom_target(lld-test)
75 add_dependencies(lld-test check-lld)
76 set_target_properties(lld-test PROPERTIES FOLDER "lld tests")
/llvm-project-15.0.7/lld/test/COFF/
H A Doptions.test3 # RUN: lld-link /out:%t.exe /entry:main %t.obj
5 # RUN: lld-link /allowbind /out:%t.exe /entry:main %t.obj
13 # RUN: lld-link /out:%t.exe /entry:main %t.obj
23 # RUN: lld-link /out:%t.exe /entry:main %t.obj
37 # RUN: lld-link /out:%t.exe /entry:main %t.obj
43 # RUN: lld-link /out:%t.exe /entry:main %t.obj
57 # RUN: lld-link /out:%t.exe /entry:main %t.obj
69 # RUN: lld-link /out:%t.exe /entry:main %t.obj
79 # RUN: lld-link /out:%t.exe /entry:main %t.obj
103 # RUN: lld-link /out:%t.exe /entry:main %t.obj
[all …]
H A Dincremental.test3 # RUN: lld-link -out:%t.dll -dll %t.obj 2>&1 \
6 # RUN: lld-link -out:%t.dll -dll %t.obj
9 # RUN: lld-link -out:%t.dll -dll -incremental %t.obj 2>&1 \
12 # RUN: lld-link -out:%t.dll -dll -incremental %t.obj
21 # RUN: lld-link -out:%t.dll -dll -debug %t.obj 2>&1 \
24 # RUN: lld-link -out:%t.dll -dll -debug %t.obj
33 # RUN: lld-link -out:%t.dll -dll -opt:icf %t.obj 2>&1 \
36 # RUN: lld-link -out:%t.dll -dll -opt:icf %t.obj
48 # RUN: lld-link -out:%t.dll -dll -debug -opt:icf %t.obj
51 # RUN: lld-link -out:%t.dll -dll -opt:ref %t.obj 2>&1 \
[all …]
H A Ddriver.test1 # RUN: not lld-link nosuchfile.obj >& %t.log
5 # RUN: lld-link --version | FileCheck -check-prefix=VERSION %s
9 # RUN: lld-link /out:%t.dll /dll %t.obj
10 # RUN: not lld-link /out:%t.exe %t.dll 2>&1 | FileCheck -check-prefix=BADFILE %s
13 # RUN: lld-link /lib /help | FileCheck -check-prefix=LIBHELP %s
14 # RUN: lld-link -lib -help | FileCheck -check-prefix=LIBHELP %s
17 # RUN: env LLD_IN_TEST=1 not lld-link /WX /lib 2>&1 | FileCheck -check-prefix=LIBBAD %s
21 # RUN: not lld-link /out:/ %t.obj 2>&1 | FileCheck -check-prefix=DIR %s
24 # RUN: env LLD_IN_TEST=1 not lld-link -version 2>&1 | FileCheck -check-prefix=SPELLVERSION %s
32 # RUN: not lld-link /nodefaultlibs 2>&1 | FileCheck -check-prefix=SPELLNODEFAULTLIB_SLASH %s
[all …]
H A Dcolor-diagnostics.test4 # RUN: not lld-link -xyz --color-diagnostics /nosuchfile 2>&1 \
6 # RUN: not lld-link -xyz --color-diagnostics=always /nosuchfile 2>&1 \
9 # COLOR: {{lld-link: .\[0;35mwarning: .\[0mignoring unknown argument '-xyz'}}
10 # COLOR: {{lld-link: .\[0;31merror: .\[0mcould not open '/nosuchfile'}}
12 # RUN: not lld-link /nosuchfile 2>&1 | FileCheck -check-prefix=NOCOLOR %s
13 # RUN: not lld-link -color-diagnostics=never /nosuchfile 2>&1 \
15 # RUN: not lld-link -color-diagnostics=always -no-color-diagnostics \
18 # NOCOLOR: lld-link: error: could not open '/nosuchfile'
/llvm-project-15.0.7/bolt/test/runtime/
H A Dplt-lld.test2 // The test is using lld linker.
5 RUN: %clang %cflags -no-pie %p/../Inputs/plt.c -fuse-ld=lld \
6 RUN: -o %t.lld.exe -Wl,-q
7 RUN: llvm-bolt %t.lld.exe -o %t.lld.bolt.exe --use-old-text=0 --lite=0
8 RUN: %t.lld.bolt.exe | FileCheck %s
11 RUN: %clang %cflags -fPIC -pie %p/../Inputs/plt.c -fuse-ld=lld \
12 RUN: -o %t.lld.pie.exe -Wl,-q
13 RUN: llvm-bolt %t.lld.pie.exe -o %t.lld.bolt.pie.exe --use-old-text=0 --lite=0
14 RUN: %t.lld.bolt.pie.exe | FileCheck %s
/llvm-project-15.0.7/lld/tools/lld/
H A DCMakeLists.txt5 add_lld_tool(lld
6 lld.cpp
10 export_executable_symbols_for_plugins(lld)
12 target_link_libraries(lld
22 install(TARGETS lld
27 lld-link ld.lld ld64.lld wasm-ld)
31 add_lld_symlink(${link} lld)
/llvm-project-15.0.7/lld/test/MachO/
H A Dlit.local.cfg13 lld_watchos = ('ld64.lld -arch arm64_32 -platform_version watchos 7.0 8.0 -syslibroot ' +
15 config.substitutions.append(('%lld-watchos', lld_watchos + ' -fatal_warnings'))
16 config.substitutions.append(('%no-fatal-warnings-lld-watchos', lld_watchos))
18 config.substitutions.append(('%no-arg-lld', 'ld64.lld'))
21 # shortest substitution of "%lld".
22 lld = ('ld64.lld -arch x86_64 -platform_version macos 11.0 11.0 -syslibroot ' +
24 config.substitutions.append(('%lld', lld + ' -fatal_warnings'))
25 config.substitutions.append(('%no-fatal-warnings-lld', lld))
H A Dplatform-version.s8 # RUN: not %no-arg-lld -arch x86_64 -o %t %t.o 2>&1 \
11 # RUN: not %no-arg-lld -arch x86_64 -o %t %t.o 2>&1 \
14 # RUN: not %no-arg-lld -arch x86_64 -o %t %t.o 2>&1 \
21 # RUN: not %no-arg-lld -arch x86_64 -o %t %t.o 2>&1 \
36 # RUN: %no-arg-lld -arch x86_64 -o %t %t.o 2>&1 \
38 # RUN: %no-arg-lld -arch x86_64 -o %t %t.o 2>&1 \
40 # RUN: %no-arg-lld -arch x86_64 -o %t %t.o 2>&1 \
42 # RUN: %no-arg-lld -arch x86_64 -o %t %t.o 2>&1 \
44 # RUN: %no-arg-lld -arch x86_64 -o %t %t.o 2>&1 \
46 # RUN: %no-arg-lld -arch x86_64 -o %t %t.o 2>&1 \
[all …]
H A Dcolor-diagnostics.test4 # RUN: not %lld --color-diagnostics /nosuchfile 2>&1 \
6 # RUN: not %lld --color-diagnostics=always /nosuchfile 2>&1 \
9 # COLOR: {{lld: .\[0;31merror: .\[0mcannot open /nosuchfile}}
11 # RUN: not %lld --color-diagnostics=foobar 2>&1 | FileCheck -check-prefix=ERR %s
14 # RUN: not %lld /nosuchfile 2>&1 | FileCheck -check-prefix=NOCOLOR %s
15 # RUN: not %lld --color-diagnostics=never /nosuchfile 2>&1 \
17 # RUN: not %lld --color-diagnostics=always --no-color-diagnostics \
20 # NOCOLOR: lld: error: cannot open /nosuchfile
H A Dadhoc-codesign.s15 # RUN: %lld -lSystem -arch x86_64 -execute -o %t/out %t/main-x86_64-macos.o
17 # RUN: %lld -arch x86_64 -dylib -o %t/out %t/foo-x86_64-macos.o
19 # RUN: %lld -arch x86_64 -bundle -o %t/out %t/foo-x86_64-macos.o
22 # RUN: %lld -lSystem -arch x86_64 -execute -adhoc_codesign -o %t/out %t/main-x86_64-macos.o
24 # RUN: %lld -arch x86_64 -dylib -adhoc_codesign -o %t/out %t/foo-x86_64-macos.o
26 # RUN: %lld -arch x86_64 -bundle -adhoc_codesign -o %t/out %t/foo-x86_64-macos.o
37 # RUN: %lld -lSystem -arch arm64 -execute -o %t/out %t/main-arm64-macos.o
39 # RUN: %lld -arch arm64 -dylib -o %t/out %t/foo-arm64-macos.o
41 # RUN: %lld -arch arm64 -bundle -o %t/out %t/foo-arm64-macos.o
46 # RUN: %lld -arch arm64 -dylib -adhoc_codesign -o %t/out %t/foo-arm64-macos.o
[all …]
/llvm-project-15.0.7/lld/test/ELF/
H A Ddriver.test3 # RUN: not ld.lld --unknown1 --unkn=own2 -m foo /no/such/file -lnosuchlib \
13 # RUN: not ld.lld %t -o /no/such/file 2>&1 | FileCheck -check-prefix=MISSING %s
16 # RUN: ld.lld --help 2>&1 | FileCheck -check-prefix=HELP %s
20 # RUN: ld.lld --version 2>&1 | FileCheck -check-prefix=VERSION %s
21 # RUN: ld.lld -v 2>&1 | FileCheck -check-prefix=VERSION %s
22 # RUN: not ld.lld -v xyz 2>&1 | FileCheck -check-prefix=VERSION %s
25 # RUN: not ld.lld --versin 2>&1 | FileCheck -check-prefix=SPELLVERSION %s
29 # RUN: ld.lld -shared %t -o %t.so
30 # RUN: not ld.lld -r %t.so %t -o /dev/null 2>&1 | FileCheck -check-prefix=ERR %s
61 # RUN: ld.lld %t -z foo -o /dev/null 2>&1 | FileCheck -check-prefix=ERR10 %s
[all …]
H A Dwarn-backrefs.s7 # RUN: ld.lld -shared %t2.o -o %t2.so
10 # RUN: ld.lld --fatal-warnings %t1.o %t2.a -o /dev/null
11 # RUN: ld.lld --fatal-warnings --warn-backrefs %t1.o %t2.a -o /dev/null
15 # RUN: ld.lld --fatal-warnings --warn-backrefs %t1.lds -o /dev/null
19 # RUN: ld.lld --fatal-warnings %t2.a %t1.o -o /dev/null
20 # RUN: ld.lld --warn-backrefs %t2.a %t1.o -o /dev/null 2>&1 | FileCheck %s
22 # RUN: ld.lld --warn-backrefs %t2.a '-(' %t1.o '-)' -o /dev/null 2>&1 | FileCheck %s
32 # RUN: ld.lld --fatal-warnings --warn-backrefs %t2.lds -o /dev/null
33 # RUN: ld.lld --fatal-warnings --warn-backrefs '-(' %t2.a %t1.o '-)' -o /dev/null
38 # RUN: ld.lld --warn-backrefs %t3.lds %t1.o -o /dev/null 2>&1 | FileCheck %s
[all …]
H A Dcolor-diagnostics.test4 # RUN: not ld.lld -xyz --color-diagnostics /nosuchfile 2>&1 \
6 # RUN: not ld.lld -xyz --color-diagnostics=always /nosuchfile 2>&1 \
9 # COLOR: {{ld.lld: .\[0;31merror: .\[0munknown argument '-xyz'}}
10 # COLOR: {{ld.lld: .\[0;31merror: .\[0mcannot open /nosuchfile}}
12 # RUN: not ld.lld --color-diagnostics=foobar 2>&1 | FileCheck -check-prefix=ERR %s
15 # RUN: not ld.lld /nosuchfile 2>&1 | FileCheck -check-prefix=NOCOLOR %s
16 # RUN: not ld.lld --color-diagnostics=never /nosuchfile 2>&1 \
18 # RUN: not ld.lld --color-diagnostics=always --no-color-diagnostics \
21 # NOCOLOR: ld.lld: error: cannot open /nosuchfile
H A Dallow-shlib-undefined.s6 # RUN: ld.lld -shared %t1.o -o %t.so
8 # RUN: ld.lld --allow-shlib-undefined %t.o %t.so -o /dev/null
11 # RUN: not ld.lld %t.o %t.so -o /dev/null 2>&1 | FileCheck %s
15 # RUN: ld.lld -shared %t.o %t.so -o /dev/null
18 # RUN: ld.lld -shared %tempty.o -o %tempty.so
19 # RUN: ld.lld -shared %t1.o %tempty.so -o %t2.so
20 # RUN: ld.lld --no-allow-shlib-undefined %t.o %t2.so -o /dev/null
24 # RUN: ld.lld -shared %t1.o -o /dev/null
25 # RUN: ld.lld -shared --allow-shlib-undefined %t1.o -o /dev/null
26 # RUN: ld.lld -shared --no-allow-shlib-undefined %t1.o -o /dev/null
[all …]
H A Dtrace-symbols.s9 # RUN: ld.lld -shared %t1 -o %t1.so
10 # RUN: ld.lld -shared %t2 -o %t2.so
16 # RUN: ld.lld -y foo -shared %t1 %t1.so -o /dev/null | \
43 # RUN: ld.lld -y foo -y common --trace-symbol=hsymbol \
45 # RUN: ld.lld -y foo -y common %t %t1.so %t2 -o %t3 | \
49 # RUN: ld.lld -y foo -y common %t %t2 %t1.a -o %t3 | \
61 # RUN: ld.lld -y foo %t %t1.a %t2.so -o %t3 | \
66 # RUN: ld.lld -y foo -y common %t %t2 %t1.a -o %t3 | \
71 # RUN: ld.lld -y foo %t %t1.a %t2.so -o %t3 | \
75 # RUN: ld.lld -y foo %t %t1.a %t2.a -o %t3 | \
[all …]
H A Dbuild-id.s5 # RUN: ld.lld --build-id %t -o %t2
8 # RUN: ld.lld --build-id %t -o %t2
10 # RUN: ld.lld --build-id=fast %t -o %t2
12 # RUN: ld.lld --build-id %t -o %t2 --threads=1
15 # RUN: ld.lld --build-id=md5 %t -o %t2
17 # RUN: ld.lld --build-id=md5 %t -o %t2 --threads=1
20 # RUN: ld.lld --build-id=sha1 %t -o %t2
25 # RUN: ld.lld --build-id=tree %t -o %t2
30 # RUN: ld.lld --build-id=uuid %t -o %t2
33 # RUN: ld.lld --build-id=0x12345678 %t -o %t2
[all …]
H A Dcommon-archive-lookup.s28 # RUN: ld.lld -o 1 main.o 1.a --fortran-common
31 # RUN: ld.lld -o 2 main.o --start-lib 1.o strong_data_only.o --end-lib --fortran-common
34 # RUN: ld.lld -o 3 main.o 2.a
37 # RUN: ld.lld -o 4 main.o --start-lib 1.o weak_data_only.o --end-lib
40 # RUN: ld.lld -o 5 main.o 3.a --print-map | FileCheck --check-prefix=MAP %s
42 # RUN: ld.lld -o 6 main.o 2.o 1.a
45 # RUN: ld.lld -o 7 main.o 2.o --start-lib 1.o strong_data_only.o --end-lib
48 # RUN: not ld.lld -o 8 main.o 1.a strong_data_only.o --fortran-common 2>&1 | \
54 # ERR: ld.lld: error: duplicate symbol: block
56 # RUN: ld.lld --no-fortran-common -o 10 main.o 1.a
[all …]
H A Dunresolved-symbols.s4 # RUN: ld.lld -shared %t2.o -o %t.so
7 # RUN: not ld.lld %t1.o %t2.o -o /dev/null 2>&1 | \
13 # RUN: not ld.lld %t1.o %t2.o -o /dev/null --unresolved-symbols=xxx 2>&1 | \
17 # RUN: not ld.lld %t1.o %t2.o -o /dev/null --unresolved-symbols xxx 2>&1 | \
22 # RUN: ld.lld %t2.o -o %t1_1 --unresolved-symbols=ignore-all
34 # RUN: ld.lld %t1.o %t2.o -o %t2 --unresolved-symbols=ignore-in-object-files
50 # RUN: ld.lld -shared %t1.o -o %t4 --unresolved-symbols=ignore-in-shared-libs
54 # RUN: ld.lld -r %t1.o %t2.o -o %t5 --unresolved-symbols=report-all
60 # RUN: ld.lld -shared %t1.o %t.so -o %t6_1
62 # RUN: not ld.lld %t2.o -o /dev/null --unresolved-symbols=report-all 2>&1 | \
[all …]
/llvm-project-15.0.7/lld/test/ELF/linkerscript/
H A Dgroup.s11 # RUN: ld.lld -o %t2 %t.t
15 # RUN: ld.lld -o %t2 %t.t
19 # RUN: not ld.lld -o /dev/null %t.t 2>/dev/null
20 # RUN: ld.lld -o %t2 %t.t -L%t.dir
24 # RUN: not ld.lld -o /dev/null %t.t 2>/dev/null
25 # RUN: ld.lld -o %t2 %t.t --sysroot=%t.dir
29 # RUN: not ld.lld -o /dev/null %t.t 2>/dev/null
30 # RUN: ld.lld -o %t2 %t.t -L%t.dir
35 # RUN: ld.lld -o %t2 %t.t -L%t.dir
52 # RUN: ld.lld 1.t
[all …]
/llvm-project-15.0.7/lld/Common/
H A DErrorHandler.cpp25 using namespace lld;
54 ErrorHandler &lld::errorHandler() { return context().e; } in errorHandler()
62 void lld::message(const Twine &msg, llvm::raw_ostream &s) { in message()
68 raw_ostream &lld::outs() { in outs()
73 raw_ostream &lld::errs() { in errs()
90 void lld::exitLld(int val) { in exitLld()
110 lld::errorHandler().flushStreams(); in exitLld()
118 void lld::diagnosticHandler(const DiagnosticInfo &di) { in diagnosticHandler()
144 void lld::checkError(Error e) { in checkError()
213 if (lld::errs().colors_enabled()) { in reportDiagnostic()
[all …]

12345678910>>...94