Commit d26e7364 authored by Russ Cox's avatar Russ Cox

ld: fix arm build

R=ken2
CC=golang-dev, mikkel
https://golang.org/cl/4384048
parent e6e2eb58
...@@ -749,7 +749,7 @@ dodata(void) ...@@ -749,7 +749,7 @@ dodata(void)
} }
for(s = datap; s != nil; s = s->next) { 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; s->type = SDATA;
if(s->np > s->size) if(s->np > s->size)
diag("%s: initialize bounds (%lld < %d)", diag("%s: initialize bounds (%lld < %d)",
......
...@@ -582,9 +582,10 @@ ldmacho(Biobuf *f, char *pkg, int64 len, char *pn) ...@@ -582,9 +582,10 @@ ldmacho(Biobuf *f, char *pkg, int64 len, char *pn)
else else
s->type = SRODATA; s->type = SRODATA;
} else { } else {
if (strcmp(sect->name, "__bss") == 0) if (strcmp(sect->name, "__bss") == 0) {
s->type = SBSS; s->type = SBSS;
else s->np = 0;
} else
s->type = SDATA; s->type = SDATA;
} }
if(s->type == STEXT) { if(s->type == STEXT) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment