]> Cypherpunks repositories - gostls13.git/commit
cmd/ld: mark hostobj sections as containing no pointers
authorDmitriy Vyukov <dvyukov@google.com>
Tue, 22 Jul 2014 08:10:18 +0000 (12:10 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Tue, 22 Jul 2014 08:10:18 +0000 (12:10 +0400)
commit65e2b6f8474f032be3dbc17a7f8ffe60c2ca6b15
treef9fb03b100f25a77dd082b7490f0bc8421fc16e5
parent722764b75a9f501e1e22509b0a3f611c28d41b22
cmd/ld: mark hostobj sections as containing no pointers
Currently they are scanned conservatively.
But there is no reason to scan them. C world must not contain
pointers into Go heap. Moreover, we don't have enough information
to emit write barriers nor update pointers there in future.
The immediate need is that it breaks the new GC because
these are weird symbols as if with pointers but not necessary
pointer aligned.

LGTM=rsc
R=golang-codereviews, rlh, rsc
CC=golang-codereviews, iant, khr
https://golang.org/cl/117000043
src/cmd/ld/ldelf.c
src/cmd/ld/ldmacho.c
src/cmd/ld/ldpe.c