]> Cypherpunks repositories - gostls13.git/commit
cmd/go, cmd/link: build c-archive as position independent on ELF
authorIan Lance Taylor <iant@golang.org>
Thu, 16 Jun 2016 19:59:09 +0000 (12:59 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 23 Aug 2016 13:12:56 +0000 (13:12 +0000)
commitd92a3606f57d3a400eea6e98ddc8db7a09625f44
tree9d0cbc57c1121ebc696118d6e2c7403fb8e6bde7
parentdc9755c2a2b561af6c990399938980ab044406ba
cmd/go, cmd/link: build c-archive as position independent on ELF

This permits people to use -buildmode=c-archive to produce an archive
file that can be included in a PIE or shared library.

Change-Id: Ie340ee2f08bcff4f6fd1415f7d96d51ee3a7c9a1
Reviewed-on: https://go-review.googlesource.com/24180
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
misc/cgo/testcarchive/carchive_test.go
src/cmd/go/build.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/symtab.go
src/cmd/link/internal/x86/asm.go
src/cmd/link/internal/x86/obj.go