diff options
| author | Ian Lance Taylor <iant@golang.org> | 2014-10-21 10:10:11 -0700 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2014-10-21 10:10:11 -0700 |
| commit | f29bd6c4a4385cd9ad24b4a0da0b66dd4f6644aa (patch) | |
| tree | 2687c72feb374cf34182ee28a13f50c28f635cb3 /src/cmd/ld/data.c | |
| parent | ab4af52a9b3f821a96daa5fcbf86ac1fed4343a3 (diff) | |
| download | go-f29bd6c4a4385cd9ad24b4a0da0b66dd4f6644aa.tar.xz | |
cmd/ld: fix addstrdata for big-endian systems
LGTM=rsc
R=minux, rsc
CC=golang-codereviews
https://golang.org/cl/158280043
Diffstat (limited to 'src/cmd/ld/data.c')
| -rw-r--r-- | src/cmd/ld/data.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cmd/ld/data.c b/src/cmd/ld/data.c index 9983a9281c..61847546a3 100644 --- a/src/cmd/ld/data.c +++ b/src/cmd/ld/data.c @@ -633,9 +633,7 @@ addstrdata(char *name, char *value) s->dupok = 1; reachable = s->reachable; addaddr(ctxt, s, sp); - adduint32(ctxt, s, strlen(value)); - if(PtrSize == 8) - adduint32(ctxt, s, 0); // round struct to pointer width + adduintxx(ctxt, s, strlen(value), PtrSize); // addstring, addaddr, etc., mark the symbols as reachable. // In this case that is not necessarily true, so stick to what |
