aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Tribble <peter.tribble@gmail.com>2026-02-18 14:24:18 +0000
committerGopher Robot <gobot@golang.org>2026-02-18 10:43:22 -0800
commit29618c443910dd9c6d8c044419a06ac1d3b4e7eb (patch)
tree02b27d60ccb2e90e9230f50c159c934a2db40e16
parentc283d1f762ea21472812eac2451d02eb8f354fac (diff)
downloadgo-29618c443910dd9c6d8c044419a06ac1d3b4e7eb.tar.xz
[release-branch.go1.26] cmd/link: don't pass -Wl,-S on illumos
The change in CL 707096 to exclude GOOS=solaris needs to also be applied for GOOS=illumos, which shares the same linker lineage. Fixes #77680 Change-Id: Ifc2047595af2db52870f9fb0a9faf646666d9e61 Reviewed-on: https://go-review.googlesource.com/c/go/+/746560 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Mark Freeman <markfreeman@google.com> (cherry picked from commit 50b63f6cb90a1437ca6756ede016f1918e721da6) Reviewed-on: https://go-review.googlesource.com/c/go/+/746660 Reviewed-by: Junyang Shao <shaojunyang@google.com> Auto-Submit: Mark Freeman <markfreeman@google.com>
-rw-r--r--src/cmd/link/dwarf_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/link/dwarf_test.go b/src/cmd/link/dwarf_test.go
index 3900ae0654..9d41c55b26 100644
--- a/src/cmd/link/dwarf_test.go
+++ b/src/cmd/link/dwarf_test.go
@@ -426,7 +426,7 @@ func TestFlagW(t *testing.T) {
{"-s", false}, // -s implies -w
{"-s -w=0", true}, // -w=0 negates the implied -w
}
- if testenv.HasCGO() && runtime.GOOS != "solaris" { // Solaris linker doesn't support the -S flag
+ if testenv.HasCGO() && runtime.GOOS != "solaris" && runtime.GOOS != "illumos" { // Solaris linker doesn't support the -S flag
tests = append(tests,
testCase{"-w -linkmode=external", false},
testCase{"-s -linkmode=external", false},