aboutsummaryrefslogtreecommitdiffstats
path: root/community/go/set-external-linker.patch
blob: 5727036d48109bd7fee141bba19a1e487f0a2813 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
diff --git a/src/cmd/link/internal/amd64/obj.go b/src/cmd/link/internal/amd64/obj.go
index 9646b60..aacc4fb 100644
--- a/src/cmd/link/internal/amd64/obj.go
+++ b/src/cmd/link/internal/amd64/obj.go
@@ -67,7 +67,7 @@ func Init() {
 	ld.Thearch.Append64 = ld.Append64l
 	ld.Thearch.TLSIEtoLE = tlsIEtoLE
 
-	ld.Thearch.Linuxdynld = "/lib64/ld-linux-x86-64.so.2"
+	ld.Thearch.Linuxdynld = "/lib/ld-musl-x86_64.so.1"
 	ld.Thearch.Freebsddynld = "/libexec/ld-elf.so.1"
 	ld.Thearch.Openbsddynld = "/usr/libexec/ld.so"
 	ld.Thearch.Netbsddynld = "/libexec/ld.elf_so"
diff --git a/src/cmd/link/internal/arm/obj.go b/src/cmd/link/internal/arm/obj.go
index 05b90d2..8a69f9c 100644
--- a/src/cmd/link/internal/arm/obj.go
+++ b/src/cmd/link/internal/arm/obj.go
@@ -63,7 +63,7 @@ func Init() {
 	ld.Thearch.Append32 = ld.Append32l
 	ld.Thearch.Append64 = ld.Append64l
 
-	ld.Thearch.Linuxdynld = "/lib/ld-linux.so.3" // 2 for OABI, 3 for EABI
+	ld.Thearch.Linuxdynld = "/lib/ld-musl-armhf.so.1"
 	ld.Thearch.Freebsddynld = "/usr/libexec/ld-elf.so.1"
 	ld.Thearch.Openbsddynld = "/usr/libexec/ld.so"
 	ld.Thearch.Netbsddynld = "/libexec/ld.elf_so"
diff --git a/src/cmd/link/internal/arm64/obj.go b/src/cmd/link/internal/arm64/obj.go
index 7d49163..66f2061 100644
--- a/src/cmd/link/internal/arm64/obj.go
+++ b/src/cmd/link/internal/arm64/obj.go
@@ -62,7 +62,7 @@ func Init() {
 	ld.Thearch.Append32 = ld.Append32l
 	ld.Thearch.Append64 = ld.Append64l
 
-	ld.Thearch.Linuxdynld = "/lib/ld-linux-aarch64.so.1"
+	ld.Thearch.Linuxdynld = "/lib/ld-musl-aarch64.so.1"
 
 	ld.Thearch.Freebsddynld = "XXX"
 	ld.Thearch.Openbsddynld = "XXX"
diff --git a/src/cmd/link/internal/mips/obj.go b/src/cmd/link/internal/mips/obj.go
index a333876..d040bfd 100644
--- a/src/cmd/link/internal/mips/obj.go
+++ b/src/cmd/link/internal/mips/obj.go
@@ -77,7 +77,7 @@ func Init() {
 		ld.Thearch.Append64 = ld.Append64b
 	}
 
-	ld.Thearch.Linuxdynld = "/lib/ld.so.1"
+	ld.Thearch.Linuxdynld = "/lib/ld-musl-mipsle.so.1"
 
 	ld.Thearch.Freebsddynld = "XXX"
 	ld.Thearch.Openbsddynld = "XXX"
diff --git a/src/cmd/link/internal/mips64/obj.go b/src/cmd/link/internal/mips64/obj.go
index b79cd9d..a681690 100644
--- a/src/cmd/link/internal/mips64/obj.go
+++ b/src/cmd/link/internal/mips64/obj.go
@@ -75,7 +75,7 @@ func Init() {
 		ld.Thearch.Append64 = ld.Append64b
 	}
 
-	ld.Thearch.Linuxdynld = "/lib64/ld64.so.1"
+	ld.Thearch.Linuxdynld = "/lib64/ld-musl-mips64le.so.1"
 
 	ld.Thearch.Freebsddynld = "XXX"
 	ld.Thearch.Openbsddynld = "XXX"
diff --git a/src/cmd/link/internal/ppc64/obj.go b/src/cmd/link/internal/ppc64/obj.go
index 6eff2f4..1f3c0be 100644
--- a/src/cmd/link/internal/ppc64/obj.go
+++ b/src/cmd/link/internal/ppc64/obj.go
@@ -77,7 +77,7 @@ func Init() {
 	}
 
 	// TODO(austin): ABI v1 uses /usr/lib/ld.so.1
-	ld.Thearch.Linuxdynld = "/lib64/ld64.so.1"
+	ld.Thearch.Linuxdynld = "/lib/ld-musl-powerpc64le.so.1"
 
 	ld.Thearch.Freebsddynld = "XXX"
 	ld.Thearch.Openbsddynld = "XXX"
diff --git a/src/cmd/link/internal/s390x/obj.go b/src/cmd/link/internal/s390x/obj.go
index eea8978..09eaa70 100644
--- a/src/cmd/link/internal/s390x/obj.go
+++ b/src/cmd/link/internal/s390x/obj.go
@@ -62,7 +62,7 @@ func Init() {
 	ld.Thearch.Append32 = ld.Append32b
 	ld.Thearch.Append64 = ld.Append64b
 
-	ld.Thearch.Linuxdynld = "/lib64/ld64.so.1"
+	ld.Thearch.Linuxdynld = "/lib/ld-musl-s390x.so.1"
 
 	// not relevant for s390x
 	ld.Thearch.Freebsddynld = "XXX"
diff --git a/src/cmd/link/internal/x86/obj.go b/src/cmd/link/internal/x86/obj.go
index ea213be..7beb2a3 100644
--- a/src/cmd/link/internal/x86/obj.go
+++ b/src/cmd/link/internal/x86/obj.go
@@ -63,7 +63,7 @@ func Init() {
 	ld.Thearch.Append32 = ld.Append32l
 	ld.Thearch.Append64 = ld.Append64l
 
-	ld.Thearch.Linuxdynld = "/lib/ld-linux.so.2"
+	ld.Thearch.Linuxdynld = "/lib/ld-musl-i386.so.1"
 	ld.Thearch.Freebsddynld = "/usr/libexec/ld-elf.so.1"
 	ld.Thearch.Openbsddynld = "/usr/libexec/ld.so"
 	ld.Thearch.Netbsddynld = "/usr/libexec/ld.elf_so"