diff options
| author | Russ Cox <rsc@golang.org> | 2015-01-26 15:14:23 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2015-01-30 03:15:44 +0000 |
| commit | 5a2771e286433c64a20fbe5ae6252080418dfa5c (patch) | |
| tree | 8f17c55da751ecb0ee1b8af0906faafd39ff1dae /src/cmd/ld/lib.c | |
| parent | 2ec293123f5769ea679ed547455e6f2b41838196 (diff) | |
| download | go-5a2771e286433c64a20fbe5ae6252080418dfa5c.tar.xz | |
cmd/gc, cmd/ld, liblink: update for portable Prog, Addr changes
Change-Id: Ia6f8badca56565b9df80c8dbe28c47f6cf7e653f
Reviewed-on: https://go-review.googlesource.com/3515
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Aram Hăvărneanu <aram@mgk.ro>
Diffstat (limited to 'src/cmd/ld/lib.c')
| -rw-r--r-- | src/cmd/ld/lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/ld/lib.c b/src/cmd/ld/lib.c index 925274bfd3..fa08bc5f03 100644 --- a/src/cmd/ld/lib.c +++ b/src/cmd/ld/lib.c @@ -1411,11 +1411,11 @@ genasmsym(void (*put)(LSym*, char*, int, vlong, vlong, int, LSym*)) for(a=s->autom; a; a=a->link) { // Emit a or p according to actual offset, even if label is wrong. // This avoids negative offsets, which cannot be encoded. - if(a->type != A_AUTO && a->type != A_PARAM) + if(a->name != A_AUTO && a->name != A_PARAM) continue; // compute offset relative to FP - if(a->type == A_PARAM) + if(a->name == A_PARAM) off = a->aoffset; else off = a->aoffset - PtrSize; |
