1
0
mirror of https://github.com/golang/go synced 2024-11-23 11:20:05 -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:
Anthony Martin 2013-12-09 18:48:44 -05:00 committed by Russ Cox
parent 58005207d2
commit 52ee63f544

View File

@ -271,10 +271,11 @@ progedit(Link *ctxt, Prog *p)
}
}
}
/* TODO
if(ctxt->headtype == Hplan9) {
if(p->from.type == D_INDIR+D_GS
&& 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->from = p->from;
q->from.type = D_INDIR + p->to.type;
@ -282,11 +283,10 @@ progedit(Link *ctxt, Prog *p)
q->as = p->as;
p->as = AMOVL;
p->from.type = D_EXTERN;
p->from.sym = plan9_tos;
p->from.sym = ctxt->plan9tos;
p->from.offset = 0;
}
}
*/
}
static Prog*