From: Ian Lance Taylor Date: Fri, 8 Jan 2010 23:10:58 +0000 (+0000) Subject: * dynobj.cc (big_endian>::find_dynsym_sections): Set pi to NULL in X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2703e3eb93fbefd8c386ee0d06a1991dc4d6008c;p=binutils-gdb.git * dynobj.cc (big_endian>::find_dynsym_sections): Set pi to NULL in the SHT_SYMTAB case. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index c14bcfb22a0..046d87aceaa 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2010-01-08 Ian Lance Taylor + + * dynobj.cc (big_endian>::find_dynsym_sections): Set pi to NULL in + the SHT_SYMTAB case. + 2010-01-08 Ian Lance Taylor * object.cc (Sized_relobj::do_layout): Don't get confused if diff --git a/gold/dynobj.cc b/gold/dynobj.cc index cb41402b841..86668fb0832 100644 --- a/gold/dynobj.cc +++ b/gold/dynobj.cc @@ -131,6 +131,7 @@ Sized_dynobj::find_dynsym_sections( break; case elfcpp::SHT_SYMTAB: symtab_shndx = i; + pi = NULL; break; case elfcpp::SHT_GNU_versym: pi = pversym_shndx;