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:
parent
48e5110151
commit
4d6bccb0f1
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user