* dynobj.cc (big_endian>::find_dynsym_sections): Set pi to NULL in
authorIan Lance Taylor <ian@airs.com>
Fri, 8 Jan 2010 23:10:58 +0000 (23:10 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 8 Jan 2010 23:10:58 +0000 (23:10 +0000)
the SHT_SYMTAB case.

gold/ChangeLog
gold/dynobj.cc

index c14bcfb..046d87a 100644 (file)
@@ -1,5 +1,10 @@
 2010-01-08  Ian Lance Taylor  <iant@google.com>
 
+       * dynobj.cc (big_endian>::find_dynsym_sections): Set pi to NULL in
+       the SHT_SYMTAB case.
+
+2010-01-08  Ian Lance Taylor  <iant@google.com>
+
        * object.cc (Sized_relobj::do_layout): Don't get confused if
        layout_eh_frame returns NULL.
 
index cb41402..86668fb 100644 (file)
@@ -131,6 +131,7 @@ Sized_dynobj<size, big_endian>::find_dynsym_sections(
          break;
        case elfcpp::SHT_SYMTAB:
          symtab_shndx = i;
+         pi = NULL;
          break;
        case elfcpp::SHT_GNU_versym:
          pi = pversym_shndx;