Home
last modified time | relevance | path

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

12345678910>>...92

/external/llvm-project/lld/lib/ReaderWriter/YAML/
DReaderWriterYAML.cpp54 using namespace lld;
75 RefNameBuilder(const lld::File &file) in RefNameBuilder()
78 for (const lld::DefinedAtom *atom : file.defined()) { in RefNameBuilder()
84 for (const lld::Reference *ref : *atom) { in RefNameBuilder()
86 const lld::Atom *target = ref->target(); in RefNameBuilder()
101 for (const lld::UndefinedAtom *undefAtom : file.undefined()) { in RefNameBuilder()
104 for (const lld::SharedLibraryAtom *shlibAtom : file.sharedLibrary()) { in RefNameBuilder()
107 for (const lld::AbsoluteAtom *absAtom : file.absolute()) { in RefNameBuilder()
113 void buildDuplicateNameMap(const lld::Atom &atom) { in buildDuplicateNameMap()
128 const lld::Atom *prevAtom = pos->second; in buildDuplicateNameMap()
[all …]
/external/llvm-project/lld/test/MinGW/
Ddriver.test1 RUN: ld.lld -### foo.o -m i386pe | FileCheck -check-prefix=X86 %s
8 RUN: ld.lld @%t.rsp | FileCheck -check-prefix=X86 %s
10 RUN: ld.lld -### foo.o -m i386pep | FileCheck -check-prefix=X64 %s
16 RUN: ld.lld -### foo.o -m thumb2pe | FileCheck -check-prefix=ARM %s
22 RUN: ld.lld -### foo.o -m arm64pe | FileCheck -check-prefix=ARM64 %s
28 RUN: ld.lld -### foo.o -m i386pep -shared | FileCheck -check-prefix=SHARED %s
29 RUN: ld.lld -### foo.o -m i386pep --shared | FileCheck -check-prefix=SHARED %s
33 RUN: ld.lld -### foo.o -m i386pep -shared foo.def | FileCheck -check-prefix=DEF1 %s
36 RUN: ld.lld -### foo.o -m i386pep -shared FOO.DEF | FileCheck -check-prefix=DEF2 %s
39 RUN: ld.lld -### foo.o -m i386pep -obar.exe | FileCheck -check-prefix=OUT %s
[all …]
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 | 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
21 RUN: ld.lld -### -m i386pep -Bstatic -lfoo -L%t/lib | FileCheck -check-prefix=LIB4 %s
26 RUN: ld.lld -### -m i386pep -Bstatic -lfoo -Bdynamic -lbar -L%t/lib | FileCheck -check-prefix=LIB5 …
32 RUN: ld.lld -### -m i386pep -L%t/lib -lnoprefix -lmsvcstyle | FileCheck -check-prefix=OTHERSTYLES %s
38 RUN: not ld.lld -### -m i386pep -L%t/lib -lnoimplib 2>&1 | FileCheck -check-prefix=UNSUPPORTED-DLL1…
39 RUN: not ld.lld -### -m i386pep -L%t/lib -lnoprefix_noimplib 2>&1 | FileCheck -check-prefix=UNSUPPO…
[all …]
/external/llvm-project/llvm/test/MC/Mips/
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 …]
/external/llvm-project/llvm/utils/gn/secondary/lld/tools/lld/
DBUILD.gn4 "lld-link",
5 "ld.lld",
6 "ld64.lld",
7 "ld64.lld.darwinnew",
12 deps = [ ":lld" ]
13 source = "lld"
18 # //:lld depends on this symlink target, see comment in //BUILD.gn.
26 executable("lld") {
29 "//lld/COFF",
30 "//lld/ELF",
[all …]
/external/llvm-project/lld/test/
DCMakeLists.txt26 set(LLD_TEST_DEPS lld)
40 add_lit_testsuite(check-lld "Running lld test suite"
45 add_custom_target(lld-test-depends DEPENDS ${LLD_TEST_DEPS})
46 set_target_properties(lld-test-depends PROPERTIES FOLDER "lld tests")
52 set_target_properties(check-lld PROPERTIES FOLDER "lld tests")
54 # Add a legacy target spelling: lld-test
55 add_custom_target(lld-test)
56 add_dependencies(lld-test check-lld)
57 set_target_properties(lld-test PROPERTIES FOLDER "lld tests")
/external/llvm-project/lld/tools/lld/
DCMakeLists.txt5 add_lld_tool(lld
6 lld.cpp
10 export_executable_symbols_for_plugins(lld)
12 target_link_libraries(lld
23 install(TARGETS lld
28 lld-link ld.lld ld64.lld ld64.lld.darwinnew wasm-ld)
32 add_lld_symlink(${link} lld)
/external/llvm-project/lld/test/COFF/
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 …]
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 …]
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'
/external/llvm-project/lld/test/MachO/
Dplatform-version.s8 # RUN: not %lld -o %t %t.o 2>&1 \
11 # RUN: not %lld -o %t %t.o 2>&1 \
14 # RUN: not %lld -o %t %t.o 2>&1 \
21 # RUN: not %lld -o %t %t.o 2>&1 \
24 # RUN: not %lld -o %t %t.o 2>&1 \
27 # RUN: not %lld -o %t %t.o 2>&1 \
30 # RUN: not %lld -o %t %t.o 2>&1 \
36 # RUN: %lld -o %t %t.o 2>&1 \
38 # RUN: %lld -o %t %t.o 2>&1 \
40 # RUN: %lld -o %t %t.o 2>&1 \
[all …]
Dcolor-diagnostics.test4 # RUN: not %lld -xyz --color-diagnostics /nosuchfile 2>&1 \
6 # RUN: not %lld -xyz --color-diagnostics=always /nosuchfile 2>&1 \
9 # COLOR: {{lld: .\[0;31merror: .\[0munknown argument '-xyz'}}
10 # COLOR: {{lld: .\[0;31merror: .\[0mcannot open /nosuchfile}}
12 # RUN: not %lld --color-diagnostics=foobar 2>&1 | FileCheck -check-prefix=ERR %s
15 # RUN: not %lld /nosuchfile 2>&1 | FileCheck -check-prefix=NOCOLOR %s
16 # RUN: not %lld --color-diagnostics=never /nosuchfile 2>&1 \
18 # RUN: not %lld --color-diagnostics=always --no-color-diagnostics \
21 # NOCOLOR: lld: error: cannot open /nosuchfile
Dorder-file.s17 # RUN: %lld -o %t/test-1 %t/test.o %t/foo.o -order_file %t/ord-1
20 # RUN: %lld -o %t/test-1 %t/foo.o %t/test.o -order_file %t/ord-1
25 # RUN: %lld -o %t/test-2 %t/test.o %t/foo.o -order_file %t/ord-2
27 # RUN: %lld -o %t/test-2 %t/foo.o %t/test.o -order_file %t/ord-2
32 # RUN: %lld -o %t/test-file-match %t/test.o %t/foo.o -order_file %t/ord-file-match
35 # RUN: %lld -o %t/test-file-match %t/foo.o %t/test.o -order_file %t/ord-file-match
41 # RUN: %lld -o %t/test-file-nomatch %t/test.o %t/foo.o -order_file %t/ord-file-nomatch
43 # RUN: %lld -o %t/test-file-nomatch %t/foo.o %t/test.o -order_file %t/ord-file-nomatch
48 # RUN: %lld -o %t/test-arch-match %t/test.o %t/foo.o -order_file %t/ord-arch-match
50 # RUN: %lld -o %t/test-arch-match %t/foo.o %t/test.o -order_file %t/ord-arch-match
[all …]
/external/llvm-project/lld/unittests/MachOTests/
DMachONormalizedFileToAtomsTests.cpp23 using namespace lld::mach_o::normalized;
28 f.arch = lld::MachOLinkingContext::arch_x86_64; in TEST()
29 llvm::Expected<std::unique_ptr<const lld::File>> atom_f = in TEST()
37 f.arch = lld::MachOLinkingContext::arch_x86_64; in TEST()
69 llvm::Expected<std::unique_ptr<const lld::File>> atom_f = in TEST()
72 const lld::File &file = **atom_f; in TEST()
75 const lld::DefinedAtom *atom1 = *it; in TEST()
77 const lld::DefinedAtom *atom2 = *it; in TEST()
79 const lld::DefinedAtom *atom3 = *it; in TEST()
80 const lld::UndefinedAtom *atom4 = *file.undefined().begin(); in TEST()
[all …]
/external/llvm-project/lld/test/ELF/linkerscript/
Dgroup.s11 # RUN: ld.lld -o %t2 %t.script
15 # RUN: ld.lld -o %t2 %t.script
19 # RUN: not ld.lld -o /dev/null %t.script 2>/dev/null
20 # RUN: ld.lld -o %t2 %t.script -L%t.dir
24 # RUN: not ld.lld -o /dev/null %t.script 2>/dev/null
25 # RUN: ld.lld -o %t2 %t.script --sysroot=%t.dir
29 # RUN: not ld.lld -o /dev/null %t.script 2>/dev/null
30 # RUN: ld.lld -o %t2 %t.script -L%t.dir
34 # RUN: not ld.lld -o /dev/null %t.script 2>/dev/null
35 # RUN: ld.lld -o %t2 %t.script -L%t.dir
[all …]
/external/llvm-project/lld/test/ELF/
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
34 # RUN: not ld.lld -r -shared %t -o /dev/null 2>&1 | FileCheck -check-prefix=ERR2 %s
[all …]
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 %t2.a '-(' %t1.o '-)' -o /dev/null 2>&1 | FileCheck %s
22 # RUN: ld.lld --warn-backrefs --warn-backrefs-exclude='*3.a' %t2.a %t1.o -o /dev/null 2>&1 | FileCh…
23 # RUN: ld.lld --fatal-warnings --warn-backrefs --warn-backrefs-exclude='*2.a(*2.o)' %t2.a %t1.o -o …
[all …]
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
9 # RUN: not ld.lld --no-allow-shlib-undefined %t.o %t.so -o /dev/null 2>&1 | FileCheck %s
11 # RUN: not ld.lld %t.o %t.so -o /dev/null 2>&1 | FileCheck %s
12 # RUN: ld.lld %t.o %t.so --noinhibit-exec -o /dev/null 2>&1 | FileCheck %s --check-prefix=WARN
13 # RUN: ld.lld %t.o %t.so --warn-unresolved-symbols -o /dev/null 2>&1 | FileCheck %s --check-prefix=…
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
[all …]
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
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
22 # RUN: ld.lld --build-id=sha1 %t -o %t2 --threads=1
25 # RUN: ld.lld --build-id=tree %t -o %t2
27 # RUN: ld.lld --build-id=tree %t -o %t2 --threads=1
[all …]
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 …]
Dentry.s4 # RUN: ld.lld -e foobar %t1 -o %t2 2>&1 | FileCheck -check-prefix=WARN1 %s
10 # RUN: ld.lld %t1 -o %t2 2>&1 | FileCheck -check-prefix=WARN2 %s
13 # RUN: ld.lld -shared -e foobar %t1 -o %t2 2>&1 | FileCheck -check-prefix=WARN3 %s
16 # RUN: ld.lld -shared --fatal-warnings -e entry %t1 -o %t2
17 # RUN: ld.lld -shared --fatal-warnings %t1 -o %t2
21 # RUN: ld.lld %t3 -o %t4 2>&1 | FileCheck -check-prefix=WARN4 %s
27 # RUN: ld.lld -v -r %t1 -o %t2 2>&1 | FileCheck -check-prefix=WARN5 %s
30 # RUN: ld.lld %t1 -o %t2 -e entry
34 # RUN: ld.lld %t1 --fatal-warnings -shared -o %t2 -e entry
38 # RUN: ld.lld %t1 -o %t2 --entry=4096
[all …]
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
24 # RUN: not ld.lld %t2.o -o /dev/null --unresolved-symbols=ignore-all --no-undefined 2>&1 | \
30 # RUN: ld.lld %t1.o %t.so -o %t1_3 --allow-shlib-undefined --unresolved-symbols=ignore-all
34 # RUN: ld.lld %t1.o %t2.o -o %t2 --unresolved-symbols=ignore-in-object-files
37 # RUN: not ld.lld %t1.o %t.so -o /dev/null --allow-shlib-undefined --unresolved-symbols=ignore-in-o…
42 # RUN: not ld.lld %t2.o -o /dev/null --unresolved-symbols=ignore-in-shared-libs 2>&1 | \
[all …]
/external/llvm-project/lld/Common/
DErrorHandler.cpp25 using namespace lld;
42 raw_ostream *lld::stdoutOS;
43 raw_ostream *lld::stderrOS;
45 ErrorHandler &lld::errorHandler() { in errorHandler()
50 raw_ostream &lld::outs() { in outs()
56 raw_ostream &lld::errs() { in errs()
62 void lld::exitLld(int val) { in exitLld()
80 lld::outs().flush(); in exitLld()
81 lld::errs().flush(); in exitLld()
89 void lld::diagnosticHandler(const DiagnosticInfo &di) { in diagnosticHandler()
[all …]
/external/llvm-project/llvm/utils/gn/secondary/lld/test/
DBUILD.gn16 rebase_path(get_label_info("//lld", "target_out_dir")),
17 "LLD_SOURCE_DIR=" + rebase_path("//lld"),
35 input = "//lld/test/lit.site.cfg.py.in"
68 input = "//lld/test/Unit/lit.site.cfg.py.in"
73 # This target should contain all dependencies of check-lld.
75 # prerequisites for check-lld but doesn't run check-lld itself.
80 "//lld/tools/lld:symlinks",
81 "//lld/unittests",
109 # This is the action that runs all of lld's tests, check-lld.
110 action("check-lld") {
[all …]

12345678910>>...92