Commit d185cc3b authored by David Crawshaw's avatar David Crawshaw

cmd/link: disable internal PIE for now

There's more work to do.

Updates #17068

Change-Id: I4e16c0e8e9ac739e1fe266224c3769f6c5b2e070
Reviewed-on: https://go-review.googlesource.com/29076Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent f1515a01
...@@ -455,7 +455,7 @@ func (ctxt *Link) loadlib() { ...@@ -455,7 +455,7 @@ func (ctxt *Link) loadlib() {
// Force external linking for PIE binaries on systems // Force external linking for PIE binaries on systems
// that do not support internal PIE linking. // that do not support internal PIE linking.
if Buildmode == BuildmodePIE && (obj.GOOS != "linux" || SysArch.Family != sys.AMD64) { if Buildmode == BuildmodePIE {
Linkmode = LinkExternal Linkmode = LinkExternal
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment