]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
coff coff
authorAlan Modra <amodra@gmail.com>
Tue, 11 Nov 2014 12:12:03 +0000 (22:42 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 11 Nov 2014 12:15:25 +0000 (22:45 +1030)
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
bfd/coffcode.h

index afbbc2677abcbd42d67759bede7620d21f584100..2e3e5a565718046bb733661ac9e9a271b4558813 100644 (file)
@@ -1,3 +1,9 @@
+2014-11-11  Alan Modra  <amodra@gmail.com>
+
+       PR binutils/17512
+       * coffcode.h (coff_slurp_line_table): Use updated lineno_count
+       when building func_table.
+
 2014-11-11  Alan Modra  <amodra@gmail.com>
 
        PR binutils/17512
@@ -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  <amodra@gmail.com>
index 6bc80145df4b38af2a704c606cc94ae281a6b613..f10654e3f7a08f8a4936a756ddb0db0df8f65bac 100644 (file)
@@ -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];