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
s->dupok = 1;
if(p->reg & RODATA)
s->type = SRODATA;
- else if(p->reg & NOPTR) {
- if(s->np > 0)
- s->type = SNOPTRDATA;
- else
- s->type = SNOPTRBSS;
- }
+ else if(p->reg & NOPTR)
+ s->type = SNOPTRBSS;
break;
case ADATA:
s->dupok = 1;
if(p->from.scale & RODATA)
s->type = SRODATA;
- else if(p->from.scale & NOPTR) {
- if(s->np > 0)
- s->type = SNOPTRDATA;
- else
- s->type = SNOPTRBSS;
- }
+ else if(p->from.scale & NOPTR)
+ s->type = SNOPTRBSS;
goto loop;
case ADATA:
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;
if(p->from.scale & RODATA)
s->type = SRODATA;
else if(p->from.scale & NOPTR)
- s->type = SNOPTRDATA;
+ s->type = SNOPTRBSS;
goto loop;
case ADATA: