1
0
mirror of https://github.com/golang/go synced 2024-11-05 16:16:11 -07:00

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/29076
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
David Crawshaw 2016-09-12 13:27:31 -04:00
parent f1515a01fd
commit d185cc3b64

View File

@ -455,7 +455,7 @@ func (ctxt *Link) loadlib() {
// Force external linking for PIE binaries on systems
// that do not support internal PIE linking.
if Buildmode == BuildmodePIE && (obj.GOOS != "linux" || SysArch.Family != sys.AMD64) {
if Buildmode == BuildmodePIE {
Linkmode = LinkExternal
}