Home
last modified time | relevance | path

Searched full:lld (Results 1 – 25 of 3252) sorted by relevance

12345678910>>...131

/llvm-project/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
28 RUN: ld.lld -### foo.o -m arm64ecpe 2>&1 | FileCheck -check-prefix=ARM64EC %s
34 RUN: ld.lld -### foo.o -m i386pep -shared 2>&1 | FileCheck -check-prefix=SHARED %s
35 RUN: ld.lld -### foo.o -m i386pep --shared 2>&1 | FileCheck -check-prefix=SHARED %s
36 RUN: ld.lld -### foo.o -m i386pep --dll 2>&1 | FileCheck -check-prefix=SHARED %s
40 RUN: ld.lld
[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
10 RUN: not ld.lld -### -m i386pep -l:barefilename -L%t/lib 2>&1 | FileCheck -check-prefix=LIB-LITERAL…
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
29 RUN: ld.lld -### -m i386pep -Bstatic -lfoo -Bdynamic -lbar -L%t/lib 2>&1 | FileCheck -check-prefix=…
[all …]
/llvm-project/lld/docs/MachO/
H A Dindex.rst1 Mach-O LLD Port
4 LLD is a linker from the LLVM project that is a drop-in replacement
12 - LLD is a drop-in replacement for Apple's Mach-O linker, ld64, that accepts the
15 - LLD is very fast. When you link a large program on a multicore
16 machine, you can expect that LLD runs more than twice as fast as the ld64
22 LLD is available as a pre-built binary by going to the `latest release <https://github.com/llvm/llv…
24 decompressing it, and locating the binary at ``bin/ld64.lld``. Note
25 that if ``ld64.lld`` is moved out of ``bin``, it must still be accompanied
26 by its sibling file ``lld``, as ``ld64.lld`` is technically a symlink to ``lld``.
31 The easiest way to build LLD is to
[all …]
/llvm-project/llvm/test/MC/Mips/
H A Dlld-expansion.s6 lld $2, 128($sp) label
7 # MIPS64: d3 a2 00 80 lld $2, 128($sp)
8 # MIPS64R6: 7f a2 40 37 lld $2, 128($sp)
10 lld $2, -128($sp) label
11 # MIPS64: d3 a2 ff 80 lld $2, -128($sp)
12 # MIPS64R6: 7f a2 c0 37 lld $2, -128($sp)
14 lld $2, 256($sp) label
15 # MIPS64: d3 a2 01 00 lld $2, 256($sp)
18 # MIPS64R6-NEXT: 7c 42 00 37 lld $2, 0($2)
20 lld $2, -257($sp) label
[all …]
/llvm-project/lld/docs/
H A Dwindows_support.rst17 LLD supports Windows operating system. When invoked as ``lld-link.exe`` or with
19 command line options, and it drives further linking processes. LLD accepts
23 The current status is that LLD is used to link production builds of large
34 :good:`Done`. LLD can read import libraries needed to link against DLL. Both
39 same as on Unix (.a). LLD can read it.
42 :good:`Done`. LLD creates a DLL if ``/DLL`` option is given. Exported
48 :good:`Done`. If an ``.res`` file is given, LLD converts the file to a COFF
55 :partial:`Partially done`. LLD currently recognizes these directives:
59 :good:`Done`. LLD can emit PDBs that are at parity with those generated by
60 link.exe. However, LLD does not support /DEBUG:FASTLINK.
[all …]
H A Dindex.rst1 LLD - The LLVM Linker
4 LLD is a linker from the LLVM project that is a drop-in replacement
9 WebAssembly in descending order of completeness. Internally, LLD consists of
18 - LLD is a drop-in replacement for the GNU linkers that accepts the
21 - LLD is very fast. When you link a large program on a multicore
22 machine, you can expect that LLD runs more than twice as fast as the GNU
36 - You can embed LLD in your program to eliminate dependencies on
40 ``lld::lldMain``, from your code.
44 2017, LLD/ELF consists only of 21k lines of C++ code while GNU gold
50 but in LLVM bitcode format. LLD read
[all...]
/llvm-project/lld/test/COFF/
H A Dcomdat-selection.s27 # link.exe (and hence lld-link) doesn't understand.
29 # RUN: cp %t.discard.obj %t.obj && lld-link /dll /noentry /nodefaultlib %t.discard.obj %t.obj
30 # RUN: cp %t.one_only.obj %t.obj && not lld-link /dll /noentry /nodefaultlib %t.one_only.obj %t.obj…
31 # ONEONE: lld-link: error: duplicate symbol: symbol
32 # RUN: cp %t.same_size.obj %t.obj && lld-link /dll /noentry /nodefaultlib %t.same_size.obj %t.obj
33 # RUN: cp %t.same_contents.obj %t.obj && lld-link /dll /noentry /nodefaultlib %t.same_contents.obj …
34 # RUN: cp %t.largest.obj %t.obj && lld-link /dll /noentry /nodefaultlib %t.largest.obj %t.obj
35 # RUN: cp %t.newest.obj %t.obj && env LLD_IN_TEST=1 not lld-link /dll /noentry /nodefaultlib %t.new…
36 # NEWNEW: lld-link: error: unknown comdat type 7 for symbol
39 # RUN: cp %t.newest.obj %t.obj && env LLD_IN_TEST=1 not lld-link /force /dll /noentry /nodefaultlib…
[all …]
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
9 # RUN: lld-link /allowbind:no /out:%t.exe /entry:main %t.obj
13 # RUN: lld-link /out:%t.exe /entry:main %t.obj
15 # RUN: lld-link /allowisolation /out:%t.exe /entry:main %t.obj
19 # RUN: lld-link /allowisolation:no /out:%t.exe /entry:main %t.obj
23 # RUN: lld-link /out:%t.exe /entry:main %t.obj
25 # RUN: lld-link /out:%t.exe /entry:main /highentropyva %t.obj
29 # RUN: lld-link /out:%t.exe /highentropyva:no /out:%t.exe /entry:main %t.obj
33 # RUN: lld-link /out:%t.exe /entry:main /integritycheck %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
15 # RUN: lld-link -out:%t.dll -dll -incremental -opt:noref,noicf %t.obj 2>&1 \
18 # RUN: lld-link -out:%t.dll -dll -incremental -opt:noref,noicf %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
27 # RUN: lld-link -out:%t.dll -dll -debug -incremental:no %t.obj 2>&1 \
30 # RUN: lld-link -out:%t.dll -dll -debug -incremental:no %t.obj
[all …]
/llvm-project/lld/test/ELF/
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
12 # RUN: ld.lld --fatal-warnings --warn-backrefs %t1.o --start-lib %t2.o --end-lib -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
21 # RUN: ld.lld --warn-backrefs --no-warn-backrefs %t2.a %t1.o -o /dev/null 2>&1 | count 0
22 # RUN: ld.lld --warn-backrefs %t2.a '-(' %t1.o '-)' -o /dev/null 2>&1 | FileCheck %s
23 # RUN: ld.lld --warn-backrefs --warn-backrefs-exclude='*3.a' %t2.a %t1.o -o /dev/null 2>&1 | FileCh…
[all …]
H A Dlibsearch.s10 // RUN: ld.lld -shared %tdyn.o -o %t.dir/libls.so
16 // RUN: not ld.lld -l 2>&1 \
21 // RUN: ld.lld -o %t3 %t.o
23 // RUN: not ld.lld -o /dev/null %t.o %tbar.o 2>&1 \
29 // RUN: not ld.lld -o /dev/null %t.o -lls 2>&1 \
35 // RUN: ld.lld -o %t3 %t.o -L %t.dir -l:libls.a
42 // RUN: ld.lld -o %t3 %t.o -L%t.dir -l:libls.so
49 // RUN: ld.lld -o %t3 %t.o -L%t.dir -lls
55 // RUN: ld.lld -o %t3 %t.o -L%t.dir2 -L%t.dir -lls
59 // RUN: ld.lld -o %t3 %t.o -lls -L%t.dir
[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 | \
21 # RUN: ld.lld -y foo -trace-symbol common -trace-symbol=hsymbol \
25 # RUN: ld.lld -y foo -trace-symbol=common -trace-symbol=hsymbol \
29 # RUN: ld.lld -y foo -trace-symbol=common -trace-symbol=hsymbol \
36 # RUN: ld.lld -y foo %t1 %t2 %t -o %t3 | FileCheck -check-prefix=REFLAST %s
41 # RUN: ld.lld -y foo -trace-symbol=common -trace-symbol=hsymbol \
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 | \
[all …]
H A Dallow-shlib-undefined.s8 # RUN: llvm-mc -filetype=obj -triple=x86_64 a.s -o a.o && ld.lld -shared a.o -o a.so
10 # RUN: llvm-mc -filetype=obj -triple=x86_64 empty.s -o empty.o && ld.lld -shared empty.o -o empty.so
12 # RUN: ld.lld --allow-shlib-undefined main.o a.so -o /dev/null
13 # RUN: not ld.lld --no-allow-shlib-undefined main.o a.so -o /dev/null 2>&1 | FileCheck %s
15 # RUN: not ld.lld main.o a.so -o /dev/null 2>&1 | FileCheck %s
16 # RUN: ld.lld main.o a.so --noinhibit-exec -o /dev/null 2>&1 | FileCheck %s --check-prefix=WARN
17 # RUN: ld.lld main.o a.so --warn-unresolved-symbols -o /dev/null 2>&1 | FileCheck %s --check-prefix…
19 # RUN: ld.lld -shared main.o a.so -o /dev/null
22 # RUN: ld.lld -shared --allow-shlib-undefined a.o -o /dev/null
23 # RUN: ld.lld -shared --no-allow-shlib-undefined a.o -o /dev/null
[all …]
/llvm-project/llvm/utils/gn/secondary/lld/tools/lld/
H A DBUILD.gn5 "lld-link",
6 "ld.lld",
7 "ld64.lld",
12 deps = [ ":lld" ]
13 source = "lld"
18 # //:lld depends on this symlink target, see comment in //BUILD.gn.
20 deps = [ ":lld" ]
26 driver_executable("lld") {
29 "//lld/COFF",
30 "//lld/ELF",
[all …]
/llvm-project/lld/include/lld/Common/
H A DDriver.h1 //===- lld/Common/Driver.h - Linker Driver Emulator -----------------------===//
15 namespace lld {
38 // Generic entry point when using LLD as a library, safe for re-entry, supports
46 } // namespace lld
52 namespace lld { \
59 // An array which declares that all LLD drivers are linked in your executable.
60 // Must be used along with LLD_HAS_DRIVERS. See examples in LLD unittests.
63 {lld::WinLink, &lld::coff::link}, {lld::Gnu, &lld::elf::link}, \
64 {lld::MinGW, &lld::mingw::link}, {lld::Darwin, &lld::macho::link}, { \
65 lld::Wasm, &lld::wasm::link \
/llvm-project/llvm/utils/mlgo-utils/tests/corpus/
H A Dextract_ir_test.py174 ## Test that we can extract a corpus from lld parameters
176 # RUN: %python %s test_lld_params | FileCheck %s --check-prefix CHECK-LLD-PARAMS
190 # CHECK-LLD-PARAMS: /some/path/lib/obj1.o
192 # CHECK-LLD-PARAMS: lib/obj1.o
194 # CHECK-LLD-PARAMS: /tmp/out/lib/obj1.o.cmd
196 # CHECK-LLD-PARAMS: /tmp/out/lib/obj1.o.thinlto.bc
198 # CHECK-LLD-PARMAS: /some/path/lib/dir/obj2.o
224 ## Test that we can load a corpus in the lld thinLTO case
233 # RUN: %python %s test_lld_thinlto_discovery %t.dir | FileCheck %s --check-prefix CHECK-LLD-THINLTO-DISCOVERY
244 # CHECK-LLD
[all...]
/llvm-project/lld/test/MachO/
H A Dlit.local.cfg20 "ld64.lld -lSystem -arch arm64_32 -platform_version watchos 7.0 8.0 -syslibroot "
23 config.substitutions.append(("%lld-watchos", lld_watchos + " -fatal_warnings"))
24 config.substitutions.append(("%no-fatal-warnings-lld-watchos", lld_watchos))
26 config.substitutions.append(("%no-arg-lld", "ld64.lld"))
29 # shortest substitution of "%lld".
30 lld = (
31 "ld64.lld -arch x86_64 -platform_version macos 11.0 11.0 -syslibroot "
34 config.substitutions.append(("%lld", lld + " -lSystem -fatal_warnings"))
35 config.substitutions.append(("%no-lsystem-lld", lld + " -fatal_warnings"))
36 config.substitutions.append(("%no-fatal-warnings-lld", lld + " -lSystem"))
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 \
24 # RUN: not %no-arg-lld -arch x86_64 -o %t %t.o 2>&1 \
27 # RUN: not %no-arg-lld -arch x86_64 -o %t %t.o 2>&1 \
30 # 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 \
[all …]
H A Ddead-strip-dylibs.s6 # RUN: %lld -dylib %t/bar.o -o %t/bar.dylib
7 # RUN: %lld -dylib %t/bar.o -o %t/libbar.dylib
8 # RUN: %lld -dylib -mark_dead_strippable_dylib %t/bar.o -o %t/bar-strip.dylib
11 # RUN: %lld -dylib %t/foo.o -o %t/foo_with_bar.dylib %t/bar.dylib -sub_library bar
12 # RUN: %lld -dylib %t/foo.o -o %t/foo.dylib
15 # RUN: %lld -dylib %t/weak-foo.o -o %t/weak-foo.dylib
20 # RUN: %lld -lSystem %t/main.o -o %t/main %t/foo_with_bar.dylib
29 # RUN: %lld -lSystem %t/main.o -o %t/main %t/foo_with_bar.dylib %t/bar.dylib
36 # RUN: %lld -lSystem %t/main.o -o %t/main %t/foo_with_bar.dylib %t/bar.dylib \
41 # RUN: %lld -lSystem %t/main.o -o %t/main %t/foo.dylib %t/bar-strip.dylib
[all …]
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
29 # RUN: %lld -lSystem -arch x86_64 -execute -no_adhoc_codesign -o %t/out %t/main-x86_64-macos.o
31 # RUN: %lld -arch x86_64 -dylib -no_adhoc_codesign -o %t/out %t/foo-x86_64-macos.o
33 # RUN: %lld -arch x86_64 -bundle -no_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
[all …]
H A Dorder-file.s14 # RUN: %lld -lSystem -o %t/test-1 %t/test.o %t/foo.o -order_file %t/ord-1
17 # RUN: %lld -lSystem -o %t/test-1 %t/foo.o %t/test.o -order_file %t/ord-1
20 # RUN: %lld -lSystem -o %t/test-2 %t/test.o %t/foo.o -order_file %t/ord-2
22 # RUN: %lld -lSystem -o %t/test-2 %t/foo.o %t/test.o -order_file %t/ord-2
25 # RUN: %lld -lSystem -o %t/test-file-match %t/test.o %t/foo.o -order_file %t/ord-file-match
28 # RUN: %lld -lSystem -o %t/test-file-match %t/foo.o %t/test.o -order_file %t/ord-file-match
31 # RUN: %lld -lSystem -o %t/test-file-nomatch %t/test.o %t/foo.o -order_file %t/ord-file-nomatch
33 # RUN: %lld -lSystem -o %t/test-file-nomatch %t/foo.o %t/test.o -order_file %t/ord-file-nomatch
36 # RUN: %lld -lSystem -o %t/test-arch-match %t/test.o %t/foo.o -order_file %t/ord-arch-match
38 # RUN: %lld -lSystem -o %t/test-arch-match %t/foo.o %t/test.o -order_file %t/ord-arch-match
[all …]
H A Dsub-library.s11 # RUN: %lld -dylib %t/libhello.o -o %t/libhello.dylib
12 # RUN: %lld -dylib -L%t -sub_library libhello -lhello \
14 # RUN: %lld -dylib -L%t -sub_library libgoodbye -lgoodbye -install_name \
31 # RUN: %lld -dylib -L%t -reexport-lgoodbye -install_name \
35 # RUN: %lld -dylib -reexport_library %t/libgoodbye.dylib -install_name \
46 # RUN: %lld -o %t/sub-library -L%t -lsuper %t/sub-library.o
55 # RUN: not %lld -dylib -o %t/sub-library -sub_library libmissing %t/sub-library.o 2>&1 \
59 # RUN: not %lld -o %t/sub-library -L%t -lsuper %t/sub-library.o 2>&1 \
66 # RUN: %lld -dylib %t/libhello.o -o %t/Hello.framework/Hello
67 # RUN: %lld -dylib -o %t/libgoodbye2.dylib -sub_library Hello %t/Hello.framework/Hello %t/libgoodby…
[all …]
/llvm-project/lld/test/
H A DCMakeLists.txt41 set(LLD_TEST_DEPS lld LLDUnitTests)
84 add_lit_testsuite(check-lld "Running lld test suite"
89 add_custom_target(lld-test-depends DEPENDS ${LLD_TEST_DEPS})
90 set_target_properties(lld-test-depends PROPERTIES FOLDER "LLD/Tests")
92 add_lit_testsuites(LLD ${CMAKE_CURRENT_SOURCE_DIR}
96 # Add a legacy target spelling: lld-test
97 add_custom_target(lld-test)
98 add_dependencies(lld
[all...]
/llvm-project/lld/tools/lld/
H A Dlld.cpp1 //===- tools/lld/lld.cpp - Linker Driver Dispatcher -----------------------===//
9 // This file contains the main function of the lld executable. The main
13 // lld is a single executable that contains four different linkers for ELF,
18 // - ld.lld: ELF (Unix)
20 // - lld-link: COFF (Windows)
23 // lld can be invoked as "lld" along with "-flavor" option. This is for
28 #include "lld/Common/Driver.h"
29 #include "lld/Common/ErrorHandler.h"
30 #include "lld/Common/Memory.h"
45 using namespace lld;
[all …]
/llvm-project/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

12345678910>>...131