]> Cypherpunks repositories - gostls13.git/commit
cmd/link: keep types together when dynamic linking
authorDavid Crawshaw <crawshaw@golang.org>
Fri, 1 Apr 2016 14:55:21 +0000 (10:55 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Mon, 4 Apr 2016 15:30:40 +0000 (15:30 +0000)
commit2d5688952db33fc967a23011c22fa8fc71251fb1
tree056414de469e241c9f8d7d7e55f1a9f4c2c10a14
parent74c0fea9e8a37ae08d4c08b71d27be94feb3332a
cmd/link: keep types together when dynamic linking

To refer to types and names by offsets, we want to keep the symbols in
the same sections. Do this by making all types .relro for now.

Once name offsets are further along, name data can move out of relro.

Change-Id: I1cbd2e914bd180cdf25c4aeb13d9c1c734febe69
Reviewed-on: https://go-review.googlesource.com/21394
Reviewed-by: Michael Hudson-Doyle <michael.hudson@canonical.com>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/symtab.go