From 2703e3eb93fbefd8c386ee0d06a1991dc4d6008c Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 8 Jan 2010 23:10:58 +0000 Subject: [PATCH] * dynobj.cc (big_endian>::find_dynsym_sections): Set pi to NULL in the SHT_SYMTAB case. --- gold/ChangeLog | 5 +++++ gold/dynobj.cc | 1 + 2 files changed, 6 insertions(+) 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; -- 2.30.2