From: Peter Tribble Date: Wed, 18 Feb 2026 14:24:18 +0000 (+0000) Subject: [release-branch.go1.26] cmd/link: don't pass -Wl,-S on illumos X-Git-Tag: go1.26.1~19 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=29618c443910dd9c6d8c044419a06ac1d3b4e7eb;p=gostls13.git [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 Reviewed-by: Cherry Mui Reviewed-by: Mark Freeman (cherry picked from commit 50b63f6cb90a1437ca6756ede016f1918e721da6) Reviewed-on: https://go-review.googlesource.com/c/go/+/746660 Reviewed-by: Junyang Shao Auto-Submit: Mark Freeman --- 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},