*** binutils-2.11.2.orig/bfd/coffgen.c Sat Nov 10 20:58:59 2001 --- binutils-2.11.2/bfd/coffgen.c Sat Nov 10 20:58:59 2001 *************** *** 538,553 **** /* This symbol has line numbers. Increment the owning section's linenumber count. */ alent *l = q->lineno; ! ! ++q->symbol.section->output_section->lineno_count; ! ++total; ! ++l; ! while (l->line_number != 0) ! { ! ++total; ++q->symbol.section->output_section->lineno_count; ! ++l; ! } } } } --- 538,549 ---- /* This symbol has line numbers. Increment the owning section's linenumber count. */ alent *l = q->lineno; ! do { ! if(q->symbol.section->output_section!=&bfd_abs_section) ++q->symbol.section->output_section->lineno_count; ! ++total; ! ++l; ! } while (l->line_number != 0); } } } *************** *** 1126,1134 **** count++; } symbol->done_lineno = true; ! ! symbol->symbol.section->output_section->moving_line_filepos += ! count * bfd_coff_linesz (abfd); } return coff_write_symbol (abfd, &(symbol->symbol), native, written, --- 1122,1130 ---- count++; } symbol->done_lineno = true; ! if(symbol->symbol.section->output_section != &bfd_abs_section) ! symbol->symbol.section->output_section->moving_line_filepos += ! count * bfd_coff_linesz (abfd); } return coff_write_symbol (abfd, &(symbol->symbol), native, written,