]> Cypherpunks repositories - gostls13.git/commitdiff
off-by-one error assigning src files to functions
authorRuss Cox <rsc@golang.org>
Mon, 15 Dec 2008 18:50:41 +0000 (10:50 -0800)
committerRuss Cox <rsc@golang.org>
Mon, 15 Dec 2008 18:50:41 +0000 (10:50 -0800)
R=r
DELTA=2  (2 added, 0 deleted, 0 changed)
OCL=21178
CL=21187

src/runtime/symtab.c

index 9580cad712bdbe50dff21c2a538ddd9f67fc7c3c..578e16f9c4f3efd84c0a23000a9e7a26949b05fe 100644 (file)
@@ -195,6 +195,8 @@ dosrcline(Sym *sym)
        switch(sym->symtype) {
        case 't':
        case 'T':
+               if(strcmp(sym->name, (byte*)"etext") == 0)
+                       break;
                f = &func[nf++];
                f->src = srcstring;
                f->ln0 += lno;