Skip to content

Commit

Permalink
liblink: fix pool generation
Browse files Browse the repository at this point in the history
Technically this shouldn't be needed, for $8200(R2) we seem to get
a C_ADDR from aclass by mistake, but this change is correct and
gets us further. We'll deal with aclass later.

Fixes golang#22

Change-Id: Ief32b80100d7c1a02f8b57a1f4016463cfe52281
  • Loading branch information
4ad committed Jan 7, 2015
1 parent 51229e3 commit c27431f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/liblink/asm7.c
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,10 @@ addpool(Link *ctxt, Prog *p, Addr *a)
}
switch(c) {
default:
t.to = *a;
t.to.offset = a->offset;
t.to.sym = a->sym;
t.to.type = a->type;
t.to.name = a->name;
break;
case C_PSAUTO:
case C_PPAUTO:
Expand Down

0 comments on commit c27431f

Please sign in to comment.