Skip to content

Commit 60b11ab

Browse files
committed
Add lld20 into toolchain registry
commit_hash:7b0d771b7f0e5779078cc5c6bd89eb4208b488aa
1 parent 161d024 commit 60b11ab

File tree

3 files changed

+61
-0
lines changed

3 files changed

+61
-0
lines changed

.mapping.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
"ynd/bin/lld/18/ix.sh":"toolchains/ynd/bin/lld/18/ix.sh",
5454
"ynd/bin/lld/18/llvm-issue-61208.diff":"toolchains/ynd/bin/lld/18/llvm-issue-61208.diff",
5555
"ynd/bin/lld/18/macho-relocation.patch":"toolchains/ynd/bin/lld/18/macho-relocation.patch",
56+
"ynd/bin/lld/20/ix.sh":"toolchains/ynd/bin/lld/20/ix.sh",
57+
"ynd/bin/lld/20/llvm-issue-61208.diff":"toolchains/ynd/bin/lld/20/llvm-issue-61208.diff",
5658
"ynd/bin/llvm-profdata/19/ix.sh":"toolchains/ynd/bin/llvm-profdata/19/ix.sh",
5759
"ynd/bin/llvm-profdata/ix.sh":"toolchains/ynd/bin/llvm-profdata/ix.sh",
5860
"ynd/bin/yq/ix.sh":"toolchains/ynd/bin/yq/ix.sh",

ynd/bin/lld/20/ix.sh

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{% extends '//bin/clang/t/t/ix.sh' %}
2+
3+
{% block fetch %}
4+
{% include '//lib/llvm/20/ver.sh' %}
5+
{% endblock %}
6+
7+
{% block bld_libs %}
8+
lib/zstd
9+
{{super()}}
10+
{% endblock %}
11+
12+
{% block bld_tool %}
13+
lib/llvm/20/tblgen
14+
{% if linux %}
15+
bin/muslstack
16+
{% endif %}
17+
{{super()}}
18+
{% endblock %}
19+
20+
{% block llvm_targets %}
21+
lld
22+
{% endblock %}
23+
24+
{% block patch %}
25+
base64 -d << EOF | patch -p1
26+
{% include 'llvm-issue-61208.diff/base64' %}
27+
EOF
28+
{% endblock %}
29+
30+
{% block configure %}
31+
export PYTHON3=$(command -v python3)
32+
echo ${PYTHON3}
33+
{{super()}}
34+
{% endblock %}
35+
36+
{% block cmake_flags %}
37+
{{super()}}
38+
LLVM_INCLUDE_BENCHMARKS=OFF
39+
LLVM_INCLUDE_TESTS=OFF
40+
Python3_EXECUTABLE=${PYTHON3}
41+
{% endblock %}
42+
43+
{% block install %}
44+
{{super()}}
45+
{% if linux %}
46+
muslstack -s 8388608 ${out}/bin/lld
47+
{% endif %}
48+
{% endblock %}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- a/lld/ELF/SymbolTable.cpp
2+
+++ b/lld/ELF/SymbolTable.cpp
3+
@@ -276,7 +276,7 @@ void SymbolTable::scanVersionScript() {
4+
pat.isExternCpp, /*hasWildCard=*/false},
5+
id, ver, /*includeNonDefault=*/true);
6+
if (!found && !ctx.arg.undefinedVersion)
7+
- Err(ctx) << "version script assignment of '" << ver << "' to symbol '"
8+
+ Warn(ctx) << "version script assignment of '" << ver << "' to symbol '"
9+
<< pat.name << "' failed: symbol not defined";
10+
};
11+
for (SymbolVersion &pat : v.nonLocalPatterns)

0 commit comments

Comments
 (0)