]> Cypherpunks repositories - gostls13.git/commit
cmd/link: support PIE internal linking on darwin/amd64
authorCherry Zhang <cherryyz@google.com>
Sun, 11 Oct 2020 19:48:22 +0000 (15:48 -0400)
committerCherry Zhang <cherryyz@google.com>
Wed, 14 Oct 2020 00:19:23 +0000 (00:19 +0000)
commitf46a5b1e4559191363dbd4f510105dd31ae97aaa
tree53e0d36ea873bb13f61041366827d508825e5564
parentc8eea1633e160d3517ea44e50898893dad09fed0
cmd/link: support PIE internal linking on darwin/amd64

This CL adds support of PIE internal linking on darwin/amd64.

This is also preparation for supporting internal linking on
darwin/arm64 (macOS), which requires PIE for everything.

Updates #38485.

Change-Id: I2ed58583dcc102f5e0521982491fc7ba6f2754ed
Reviewed-on: https://go-review.googlesource.com/c/go/+/261642
Trust: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
misc/cgo/test/issue4029.c
misc/cgo/test/issue4029.go
misc/cgo/test/issue4029w.go
src/cmd/dist/test.go
src/cmd/internal/sys/supported.go
src/cmd/link/internal/amd64/asm.go
src/cmd/link/internal/ld/config.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/macho.go
src/cmd/link/internal/loader/symbolbuilder.go