1
0
mirror of https://github.com/golang/go synced 2024-11-17 13:54:46 -07:00
go/misc/cgo/testshared
Michael Hudson-Doyle 2c2cbb69c8 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.

Fixes #10914
Updates #9210

Change-Id: I7178daadc0ae87953d5a084aa3d580f4e3b46d47
Reviewed-on: https://go-review.googlesource.com/10300
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-04 05:25:10 +00:00
..
src cmd/compile: define func value symbols at declaration 2015-07-20 00:50:46 +00:00
shared_test.go cmd/internal/ld: put read-only relocated data into .data.rel.ro when making a shared object 2015-09-04 05:25:10 +00:00