mirror of
https://github.com/golang/go
synced 2024-11-25 07:07:57 -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) {
|
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)
|
|||||||
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user