diff options
author | Russ Cox <rsc@golang.org> | 2014-05-20 00:30:58 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-05-20 00:30:58 -0400 |
commit | cf9a69164482ef4dfd19dd6fc8f837a093b76b3c (patch) | |
tree | fd2ff1367481fffc7d90e791313758ef81558ea1 /include | |
parent | 65c2fd0e9e25859d1c6f2c415022756251443207 (diff) | |
download | go-cf9a69164482ef4dfd19dd6fc8f837a093b76b3c.tar.gz |
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 issue 7486.
LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews, r
https://codereview.appspot.com/95530043
Diffstat (limited to 'include')
-rw-r--r-- | include/link.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/link.h b/include/link.h index 044849254..248497888 100644 --- a/include/link.h +++ b/include/link.h @@ -243,6 +243,7 @@ enum R_PLT0, R_PLT1, R_PLT2, + R_USEFIELD, }; // Auto.type |