From 0ac2337434968896a6393fdd8c0624bd2945bbea Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 11 Nov 2014 22:42:03 +1030 Subject: coff coff I missed this use of the loop induction variable outside the loop. PR binutils/17512 * coffcode.h (coff_slurp_line_table): Use updated lineno_count when building func_table. --- bfd/ChangeLog | 7 +++++++ bfd/coffcode.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index afbbc26..2e3e5a5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,6 +1,12 @@ 2014-11-11 Alan Modra PR binutils/17512 + * coffcode.h (coff_slurp_line_table): Use updated lineno_count + when building func_table. + +2014-11-11 Alan Modra + + PR binutils/17512 * coffcode.h (coff_slurp_line_table): Don't bfd_zalloc, just memset the particular bits we need. Update src after hitting loop "continue". Don't count lineno omitted due to invalid symbols in @@ -8,6 +14,7 @@ lineno. Don't both allocating terminator in n_lineno_cache. Redirect sym->lineno pointer to where n_lineno_cache will be copied, and free n_lineno_cache. + * pe-mips.c (NUM_HOWTOS): Typo fix. 2014-11-11 Alan Modra diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 6bc8014..f10654e 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -4613,7 +4613,7 @@ coff_slurp_line_table (bfd *abfd, asection *asect) alent **p = func_table; unsigned int i; - for (i = 0; i < counter; i++) + for (i = 0; i < asect->lineno_count; i++) if (lineno_cache[i].line_number == 0) *p++ = &lineno_cache[i]; -- cgit v1.1