]> Cypherpunks repositories - gostls13.git/commitdiff
pick up symbol for JMP main(SB)
authorRuss Cox <rsc@golang.org>
Mon, 8 Dec 2008 19:33:04 +0000 (11:33 -0800)
committerRuss Cox <rsc@golang.org>
Mon, 8 Dec 2008 19:33:04 +0000 (11:33 -0800)
but not JMP main (label).

R=ken
OCL=20724
CL=20724

src/cmd/6l/pass.c

index 3ddc1e93708888a5d397b2be487b97813ee64855..e5316fe467998ae0d04fbd58e1b7db234c4f3477 100644 (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'])