From 95e00a25076f160b6d9ce48d8bc08497ef484ee7 Mon Sep 17 00:00:00 2001 From: ian Date: Thu, 10 Feb 2011 01:12:37 +0000 Subject: [PATCH] PR gold/12316 * object.h (class Sized_relobj): Remove clear_local_symbols. * reloc.cc (Sized_relobj::do_relocate): Don't call clear_local_symbols. --- gold/ChangeLog | 7 +++++++ gold/object.h | 11 +---------- gold/reloc.cc | 5 +---- 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index ce6cc0188c..0313619bcf 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,10 @@ +2011-02-09 Ian Lance Taylor + + PR gold/12316 + * object.h (class Sized_relobj): Remove clear_local_symbols. + * reloc.cc (Sized_relobj::do_relocate): Don't call + clear_local_symbols. + 2010-02-08 Rafael Ávila de Espíndola * plugin.cc (is_visible_from_outside): Return true for symbols diff --git a/gold/object.h b/gold/object.h index 3e3a25bb8b..8ee03a703f 100644 --- a/gold/object.h +++ b/gold/object.h @@ -1,6 +1,6 @@ // object.h -- support for an object file for linking in gold -*- C++ -*- -// Copyright 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. +// Copyright 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. // Written by Ian Lance Taylor . // This file is part of gold. @@ -2165,15 +2165,6 @@ class Sized_relobj : public Relobj Output_symtab_xindex*, Output_symtab_xindex*); - // Clear the local symbol information. - void - clear_local_symbols() - { - this->local_values_.clear(); - this->local_got_offsets_.clear(); - this->local_plt_offsets_.clear(); - } - // Record a mapping from discarded section SHNDX to the corresponding // kept section. void diff --git a/gold/reloc.cc b/gold/reloc.cc index ac7eb462fe..bacf52c8da 100644 --- a/gold/reloc.cc +++ b/gold/reloc.cc @@ -1,6 +1,6 @@ // reloc.cc -- relocate input files for gold. -// Copyright 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. +// Copyright 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. // Written by Ian Lance Taylor . // This file is part of gold. @@ -685,9 +685,6 @@ Sized_relobj::do_relocate(const Symbol_table* symtab, // Write out the local symbols. this->write_local_symbols(of, layout->sympool(), layout->dynpool(), layout->symtab_xindex(), layout->dynsym_xindex()); - - // We should no longer need the local symbol values. - this->clear_local_symbols(); } // Sort a Read_multiple vector by file offset. -- 2.11.0