aboutsummaryrefslogtreecommitdiff
path: root/src/internal/testenv
diff options
context:
space:
mode:
authorThan McIntosh <thanm@google.com>2024-03-13 17:46:29 +0000
committerThan McIntosh <thanm@google.com>2024-03-14 14:41:04 +0000
commitbe58fd00707a6e90cd868c279e0fd348a9ae7092 (patch)
treed03044ddd9ca4984489926fa3aad9d2ad89096b4 /src/internal/testenv
parent1e20af021ffe12efdaa3b82c7027af21d491457d (diff)
downloadgo-be58fd00707a6e90cd868c279e0fd348a9ae7092.tar.xz
Revert: "cmd/link: add option to enable full RELRO for ELF"
This reverts https://go.dev/cl/c/go/+/473495. Reason for revert: breaks some Google-internal tests. This revert will be temporary until we can gather more info on the nature of the failures and hopefully develop an upstream test case, etc. Updates #45681. Change-Id: Ib628ddc53bc5489e4f76c0f4ad809b75e899102c Reviewed-on: https://go-review.googlesource.com/c/go/+/571415 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/internal/testenv')
-rw-r--r--src/internal/testenv/testenv.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/internal/testenv/testenv.go b/src/internal/testenv/testenv.go
index 3b9d2fd1e9..f767ac590c 100644
--- a/src/internal/testenv/testenv.go
+++ b/src/internal/testenv/testenv.go
@@ -369,15 +369,6 @@ func MustInternalLink(t testing.TB, withCgo bool) {
}
}
-// MustInternalLinkPIE checks whether the current system can link PIE binary using
-// internal linking.
-// If not, MustInternalLinkPIE calls t.Skip with an explanation.
-func MustInternalLinkPIE(t testing.TB) {
- if !platform.InternalLinkPIESupported(runtime.GOOS, runtime.GOARCH) {
- t.Skipf("skipping test: internal linking for buildmode=pie on %s/%s is not supported", runtime.GOOS, runtime.GOARCH)
- }
-}
-
// MustHaveBuildMode reports whether the current system can build programs in
// the given build mode.
// If not, MustHaveBuildMode calls t.Skip with an explanation.