]> Cypherpunks repositories - gostls13.git/commit
liblink: fix field tracking
authorRuss Cox <rsc@golang.org>
Tue, 20 May 2014 04:30:58 +0000 (00:30 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 20 May 2014 04:30:58 +0000 (00:30 -0400)
commitd9c9665f1dcd09b0e315c9437d192fed795587a5
treee4f4db102031ca07b6b43c3e96400e2456d840e4
parent6aee29648fce3af20507787035ae22d06d75d39b
liblink: fix field tracking

The USEFIELD instructions no longer make it to the linker,
so we have to do something else to pin the references
they were pinning. Emit a 0-length relocation of type R_USEFIELD.

Fixes #7486.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews, r
https://golang.org/cl/95530043
include/link.h
src/liblink/asm6.c
src/liblink/asm8.c