1
0
mirror of https://github.com/golang/go synced 2024-10-04 19:21:21 -06:00
go/src/cmd
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
..
addr2line cmd/addr2line: simplify windows test 2015-06-17 14:23:20 +00:00
api api: add go1.5.txt API file, reset next.txt 2015-07-21 02:48:35 +00:00
asm cmd/asm: fix handling of nested #if[n]defs 2015-09-04 05:23:28 +00:00
cgo cmd/cgo: annotate named return struct members in comments 2015-08-26 00:24:34 +00:00
compile cmd/compile/internal/gc: allow //go:systemstack only in runtime 2015-09-04 02:16:50 +00:00
cover all: extract "can I exec?" check from tests into internal/testenv 2015-06-16 18:07:36 +00:00
dist all: remove executable bit from several files 2015-09-04 02:59:49 +00:00
doc cmd/doc: document that json.Decode documents encoding/json.Decoder.Decode 2015-09-02 17:58:17 +00:00
fix cmd/fix: add gotypes module 2015-07-17 01:47:14 +00:00
go cmd/doc: document that json.Decode documents encoding/json.Decoder.Decode 2015-09-02 17:58:17 +00:00
gofmt cmd/gofmt, go/format: refactor common pieces into internal/format 2015-04-01 17:35:26 +00:00
internal 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
link 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
newlink 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
nm all: extract "can I exec?" check from tests into internal/testenv 2015-06-16 18:07:36 +00:00
objdump cmd/objdump: don't run TestDisasmExtld if cgo is not enabled 2015-07-31 20:16:22 +00:00
pack all: extract "can I exec?" check from tests into internal/testenv 2015-06-16 18:07:36 +00:00
pprof cmd/pprof: fix race between viewer and web command 2015-07-23 03:51:39 +00:00
trace cmd/trace: don't fail when no browser is available 2015-08-21 20:02:23 +00:00
vendor cmd/vendor/golang.org/x/arch: import arm/armasm and x86/x86asm 2015-08-28 16:34:30 +00:00
vet cmd/vet: diagnose using Printf on a function value 2015-09-02 17:58:04 +00:00
yacc cmd/yacc: fix compile error in empty grammar 2015-08-18 13:50:36 +00:00