]> Cypherpunks repositories - gostls13.git/commit
cmd/go, cmd/link: enable buildmode=pie on darwin/amd64
authorHiroshi Ioka <hirochachacha@gmail.com>
Sat, 5 Aug 2017 09:25:26 +0000 (18:25 +0900)
committerIan Lance Taylor <iant@golang.org>
Mon, 14 Aug 2017 18:45:21 +0000 (18:45 +0000)
commitb7c600d6ba8828dbdc6a047aac240d40b4fc44a7
tree73bd566f88df93047f9685bf5cead167a3a018d4
parent9fbc06e6aa88372a449b75b35420e83ffce05a0b
cmd/go, cmd/link: enable buildmode=pie on darwin/amd64

Change some configurations to enable the feature. Also add the test.
This CL doesn't include internal linking support which is tentatively
disabled due to #18968. We could do that another day.

Fixes #21220

Change-Id: I601d2d78446d36332acc70be0d5b9461ac635208
Reviewed-on: https://go-review.googlesource.com/54790
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/work/build.go
src/cmd/link/internal/ld/config.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/macho.go