]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR gold/12316
authorIan Lance Taylor <ian@airs.com>
Thu, 10 Feb 2011 01:15:28 +0000 (01:15 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 10 Feb 2011 01:15:28 +0000 (01:15 +0000)
* object.h (class Sized_relobj): Remove clear_local_symbols.
* reloc.cc (Sized_relobj::do_relocate): Don't call
clear_local_symbols.

gold/ChangeLog
gold/object.h
gold/reloc.cc

index 8e1e63014b1fa5539d93c968fa7b0f06fd0af32d..4682b9bbddb009fb94509f0bfeffba83183fa24b 100644 (file)
@@ -1,3 +1,10 @@
+2011-02-09  Ian Lance Taylor  <iant@google.com>
+
+       PR gold/12316
+       * object.h (class Sized_relobj): Remove clear_local_symbols.
+       * reloc.cc (Sized_relobj::do_relocate): Don't call
+       clear_local_symbols.
+
 2011-02-04  Jeffrey Yasskin  <jyasskin@google.com>
 
        * symtab.cc (Odr_violation_compare::operator()): Sort by just the
index 6eca6e9d62c2a0cad41eb8c776578b918b5a58b1..07d962a5cf3c234ee8a3f24454b2a62ae7a8b365 100644 (file)
@@ -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 <iant@google.com>.
 
 // 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
index 9ffb693b487255a0c03da40d6184bb539f75d8ae..acbde4428b8c163c1ea4de8bdae339097d08400f 100644 (file)
@@ -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 <iant@google.com>.
 
 // This file is part of gold.
@@ -685,9 +685,6 @@ Sized_relobj<size, big_endian>::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.