summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-05-20 00:30:58 -0400
committerRuss Cox <rsc@golang.org>2014-05-20 00:30:58 -0400
commitcf9a69164482ef4dfd19dd6fc8f837a093b76b3c (patch)
treefd2ff1367481fffc7d90e791313758ef81558ea1 /include
parent65c2fd0e9e25859d1c6f2c415022756251443207 (diff)
downloadgo-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.h1
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