Commit 7df571ae authored by Russ Cox's avatar Russ Cox

off-by-one error assigning src files to functions

R=r
DELTA=2  (2 added, 0 deleted, 0 changed)
OCL=21178
CL=21187
parent 5bb0c4f8
...@@ -195,6 +195,8 @@ dosrcline(Sym *sym) ...@@ -195,6 +195,8 @@ dosrcline(Sym *sym)
switch(sym->symtype) { switch(sym->symtype) {
case 't': case 't':
case 'T': case 'T':
if(strcmp(sym->name, (byte*)"etext") == 0)
break;
f = &func[nf++]; f = &func[nf++];
f->src = srcstring; f->src = srcstring;
f->ln0 += lno; f->ln0 += lno;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment