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:
parent
e6e2eb5807
commit
d26e73646e
@ -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)",
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user