diff options
| author | Russ Cox <rsc@golang.org> | 2012-02-21 23:04:38 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2012-02-21 23:04:38 -0500 |
| commit | 433e47dc030c19402af1f62f78789ff2ccbb66ae (patch) | |
| tree | 4fdae2bdb023c6cf27deba205ebed7362b204ece /src/cmd/8l | |
| parent | 8d29a09707877185d0a19fe2d68459cf2f833bff (diff) | |
| download | go-433e47dc030c19402af1f62f78789ff2ccbb66ae.tar.xz | |
ld: only set SNOPTRBSS during load
dodata will convert to SNOPTRDATA if appropriate.
Should fix arm build (hope springs eternal).
TBR=golang-dev
CC=golang-dev
https://golang.org/cl/5687074
Diffstat (limited to 'src/cmd/8l')
| -rw-r--r-- | src/cmd/8l/obj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/8l/obj.c b/src/cmd/8l/obj.c index ccb4f7c23a..af4bc844fb 100644 --- a/src/cmd/8l/obj.c +++ b/src/cmd/8l/obj.c @@ -563,7 +563,7 @@ loop: s->type = SBSS; s->size = 0; } - if(s->type != SBSS && s->type != SNOPTRDATA && !s->dupok) { + if(s->type != SBSS && s->type != SNOPTRBSS && !s->dupok) { diag("%s: redefinition: %s in %s", pn, s->name, TNAME); s->type = SBSS; @@ -576,7 +576,7 @@ loop: if(p->from.scale & RODATA) s->type = SRODATA; else if(p->from.scale & NOPTR) - s->type = SNOPTRDATA; + s->type = SNOPTRBSS; goto loop; case ADATA: |
