]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: disable internal PIE for now
authorDavid Crawshaw <crawshaw@golang.org>
Mon, 12 Sep 2016 17:27:31 +0000 (13:27 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Mon, 12 Sep 2016 18:21:29 +0000 (18:21 +0000)
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>

src/cmd/link/internal/ld/lib.go

index 093a6f1b3d57ffca59178fe314f0314f5d4af73d..9c95d478b56a4f62e28193e0b0e7c3c3fd54023a 100644 (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
                }