1
0
mirror of https://github.com/golang/go synced 2024-11-22 21:30:02 -07:00

pick up symbol for JMP main(SB)

but not JMP main (label).

R=ken
OCL=20724
CL=20724
This commit is contained in:
Russ Cox 2008-12-08 11:33:04 -08:00
parent 48e5110151
commit 4d6bccb0f1

View File

@ -362,7 +362,7 @@ patch(void)
for(p = firstp; p != P; p = p->link) {
if(p->as == ATEXT)
curtext = p;
if(p->as == ACALL || p->as == AJMP) {
if(p->as == ACALL || (p->as == AJMP && p->to.type != D_BRANCH)) {
s = p->to.sym;
if(s) {
if(debug['c'])