aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gold/ChangeLog5
-rw-r--r--gold/dynobj.cc1
2 files changed, 6 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index c14bcfb..046d87a 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -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.
diff --git a/gold/dynobj.cc b/gold/dynobj.cc
index cb41402..86668fb 100644
--- a/gold/dynobj.cc
+++ b/gold/dynobj.cc
@@ -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;