1
0
mirror of https://github.com/golang/go synced 2024-11-24 12:20:17 -07:00
go/misc/cgo/testcshared
Michael Hudson-Doyle 5cbca8d84b cmd/internal/ld: put read-only relocated data into .data.rel.ro when making a shared object
Currently Go produces shared libraries that cannot be shared between processes
because they have relocations against the text segment (not text section). This
fixes this by moving some data to sections with magic names recognized by the
static linker.

The change in genasmsym to add STYPELINK to the switch should fix things on
darwin/arm64.

Fixes #10914
Updates #9210

Change-Id: Iab4a6678dd04cec6114e683caac5cf31b1063309
Reviewed-on: https://go-review.googlesource.com/14306
Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2015-09-08 23:34:16 +00:00
..
src misc/cgo/testcshared: add a c-shared test for android/arm. 2015-04-24 16:32:31 +00:00
main0.c cmd/go: install headers for c-archive/c-shared cgo exports 2015-05-07 17:39:56 +00:00
main1.c
main2.c misc/cgo/testcshared: add a c-shared test for android/arm. 2015-04-24 16:32:31 +00:00
main3.c misc/cgo/testcshared: add a c-shared test for android/arm. 2015-04-24 16:32:31 +00:00
test.bash cmd/internal/ld: put read-only relocated data into .data.rel.ro when making a shared object 2015-09-08 23:34:16 +00:00