mirror of
https://github.com/golang/go
synced 2024-11-23 13:20:09 -07:00
liblink: fix extern register accesses on Plan 9 (386)
R=golang-dev, 0intro, rsc CC=golang-dev https://golang.org/cl/39680044
This commit is contained in:
parent
58005207d2
commit
52ee63f544
@ -271,10 +271,11 @@ progedit(Link *ctxt, Prog *p)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* TODO
|
|
||||||
if(ctxt->headtype == Hplan9) {
|
if(ctxt->headtype == Hplan9) {
|
||||||
if(p->from.type == D_INDIR+D_GS
|
if(p->from.type == D_INDIR+D_GS
|
||||||
&& p->to.type >= D_AX && p->to.type <= D_DI) {
|
&& p->to.type >= D_AX && p->to.type <= D_DI) {
|
||||||
|
if(ctxt->plan9tos == nil)
|
||||||
|
ctxt->plan9tos = linklookup(ctxt, "_tos", 0);
|
||||||
q = appendp(ctxt, p);
|
q = appendp(ctxt, p);
|
||||||
q->from = p->from;
|
q->from = p->from;
|
||||||
q->from.type = D_INDIR + p->to.type;
|
q->from.type = D_INDIR + p->to.type;
|
||||||
@ -282,11 +283,10 @@ progedit(Link *ctxt, Prog *p)
|
|||||||
q->as = p->as;
|
q->as = p->as;
|
||||||
p->as = AMOVL;
|
p->as = AMOVL;
|
||||||
p->from.type = D_EXTERN;
|
p->from.type = D_EXTERN;
|
||||||
p->from.sym = plan9_tos;
|
p->from.sym = ctxt->plan9tos;
|
||||||
p->from.offset = 0;
|
p->from.offset = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static Prog*
|
static Prog*
|
||||||
|
Loading…
Reference in New Issue
Block a user