aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2017-09-25 03:46:47 +1000
committerJoel Sing <joel@sing.id.au>2017-10-02 16:14:18 +0000
commita212494fc1ba9557e09c3e15398c30bc1b5bc16a (patch)
tree52de0cc2244c0b08720429b360d16a602332c525
parentd76c7d5a31ffaba3134f16981abd5f891fa2d805 (diff)
downloadgo-a212494fc1ba9557e09c3e15398c30bc1b5bc16a.tar.gz
go-a212494fc1ba9557e09c3e15398c30bc1b5bc16a.zip
[release-branch.go1.4] cmd/link: specify correct size for dynamic symbols in 386 elf output
This is a backport of https://golang.org/cl/22912 to the Go 1.4 branch. Updates #20672 Change-Id: Id71c0c4596a599c5293b013f68894f6ee13e06d6 Reviewed-on: https://go-review.googlesource.com/66070 Reviewed-by: Ian Lance Taylor <iant@golang.org>
-rw-r--r--src/cmd/8l/asm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/8l/asm.c b/src/cmd/8l/asm.c
index cff29488e8..5ec561e0ca 100644
--- a/src/cmd/8l/asm.c
+++ b/src/cmd/8l/asm.c
@@ -498,7 +498,7 @@ adddynsym(Link *ctxt, LSym *s)
addaddr(ctxt, d, s);
/* size */
- adduint32(ctxt, d, 0);
+ adduint32(ctxt, d, s->size);
/* type */
t = STB_GLOBAL << 4;