Skip to content

Commit

Permalink
cmd/link: disable internal PIE for now
Browse files Browse the repository at this point in the history
There's more work to do.

Updates golang#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>
  • Loading branch information
crawshaw committed Sep 12, 2016
1 parent f1515a0 commit d185cc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/link/internal/ld/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit d185cc3

Please sign in to comment.