]> Cypherpunks repositories - gostls13.git/commit
cmd/9a: fix GLOBL instruction
authorRuss Cox <rsc@golang.org>
Thu, 29 Jan 2015 18:50:19 +0000 (13:50 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 3 Feb 2015 18:21:54 +0000 (18:21 +0000)
commita293c7e68f64d3935c4720372cb26925e4d8353f
tree0f337db5884f96bdae8a70f586c74539d2325567
parenteaa872009db2018816d5e14c6349df3ab7e6df0c
cmd/9a: fix GLOBL instruction

Because it was lumped in with the TEXT instruction,
the high 32 bits of the 64-bit constant holding the size
were always set to 0x80000000 (ArgsSizeUnknown).
This only worked because cmd/9l was reading the 64-bit
value into an int32.

While we're here, fix 5a.
It wasn't as much of a problem there because
the two values were being stored in two different fields.
But it was still wrong.

Change-Id: I69a2214c7be939530d499e29cfdc3b26720ac05a
Reviewed-on: https://go-review.googlesource.com/3570
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/5a/a.y
src/cmd/5a/lex.c
src/cmd/5a/y.tab.c
src/cmd/5a/y.tab.h
src/cmd/9a/a.y
src/cmd/9a/lex.c
src/cmd/9a/y.tab.c
src/cmd/9a/y.tab.h