From 4d6bccb0f13a76cbadab00c8d5f7d5053a799948 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 8 Dec 2008 11:33:04 -0800 Subject: [PATCH] pick up symbol for JMP main(SB) but not JMP main (label). R=ken OCL=20724 CL=20724 --- src/cmd/6l/pass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/6l/pass.c b/src/cmd/6l/pass.c index 3ddc1e93708..e5316fe4679 100644 --- a/src/cmd/6l/pass.c +++ b/src/cmd/6l/pass.c @@ -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'])