1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:14:47 -07:00

ld: fix arm build

R=ken2
CC=golang-dev, mikkel
https://golang.org/cl/4384048
This commit is contained in:
Russ Cox 2011-04-08 13:42:11 -04:00
parent e6e2eb5807
commit d26e73646e
2 changed files with 4 additions and 3 deletions

View File

@ -749,7 +749,7 @@ dodata(void)
}
for(s = datap; s != nil; s = s->next) {
if(s->np > 0 && s->type == SBSS && s->file != nil) // TODO: necessary?
if(s->np > 0 && s->type == SBSS)
s->type = SDATA;
if(s->np > s->size)
diag("%s: initialize bounds (%lld < %d)",

View File

@ -582,9 +582,10 @@ ldmacho(Biobuf *f, char *pkg, int64 len, char *pn)
else
s->type = SRODATA;
} else {
if (strcmp(sect->name, "__bss") == 0)
if (strcmp(sect->name, "__bss") == 0) {
s->type = SBSS;
else
s->np = 0;
} else
s->type = SDATA;
}
if(s->type == STEXT) {