]> Cypherpunks repositories - gostls13.git/commit
cmd/link,runtime/cgo: enable PT_TLS generation on OpenBSD
authorJoel Sing <joel@sing.id.au>
Tue, 11 Apr 2017 15:10:01 +0000 (01:10 +1000)
committerJoel Sing <joel@sing.id.au>
Tue, 11 Apr 2017 16:33:16 +0000 (16:33 +0000)
commit9417c022c6d7e6457fd6de89f92bb9c52a04819b
treec16ef244f23153741504dc7b3b13940c254102ba
parent2122fc6358c926846ea70c8497f94f9b8c8a49c3
cmd/link,runtime/cgo: enable PT_TLS generation on OpenBSD

OpenBSD 6.0 and later have support for PT_TLS in ld.so(1). Now that OpenBSD
6.1 has been released, OpenBSD 5.9 is no longer officially supported and Go
can start generating PT_TLS for OpenBSD cgo binaries. This also allows us
to remove the workarounds in the OpenBSD cgo runtime.

This change also removes the environ and progname exports - these are now
provided directly by ld.so(1) itself.

Fixes #19932

Change-Id: I42e75ef9feb5dcd4696add5233497e3cbc48ad52
Reviewed-on: https://go-review.googlesource.com/40331
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/lib.go
src/runtime/cgo/gcc_libinit.c
src/runtime/cgo/gcc_libinit_openbsd.c
src/runtime/cgo/gcc_openbsd_386.c
src/runtime/cgo/gcc_openbsd_amd64.c
src/runtime/cgo/openbsd.go