]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: avoid pointers in go.string.* symbols
authorDavid Crawshaw <crawshaw@golang.org>
Fri, 25 Mar 2016 02:32:38 +0000 (22:32 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Fri, 25 Mar 2016 16:38:46 +0000 (16:38 +0000)
commit4d920410d2a61b9df697337faff3944834b55162
tree9b83e259344b008c35c1ff34634d3fda6d2be562
parent41e176fbe09de9487fad9577df8222d2073d6d21
cmd/compile: avoid pointers in go.string.* symbols

When creating binaries for dynamic linking, the linker moves
read-only data symbols that contain pointers into relro sections.
It is not setup for handling a go.string symbol moving to relro.

Instead of teaching it how (because go.string symbols with pointers
are unusual anyhow), put the data in a type.. section.

Fixes the android builder.

Change-Id: Ica4722d32241643c060923517b90276ff8ac6b07
Reviewed-on: https://go-review.googlesource.com/21110
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/reflect.go