aboutsummaryrefslogtreecommitdiff
path: root/gold/reloc.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-11-12 20:35:21 +0000
committerIan Lance Taylor <iant@google.com>2007-11-12 20:35:21 +0000
commitb696e6d46c9ef8898f59c88bb7a5febea5ac9de6 (patch)
tree8202e58e4d546fdd2ab4b8ec038938be072c98a2 /gold/reloc.cc
parent24badc6562b8153e0181f5bd937b5a84aa8a451e (diff)
downloadfsf-binutils-gdb-b696e6d46c9ef8898f59c88bb7a5febea5ac9de6.zip
fsf-binutils-gdb-b696e6d46c9ef8898f59c88bb7a5febea5ac9de6.tar.gz
fsf-binutils-gdb-b696e6d46c9ef8898f59c88bb7a5febea5ac9de6.tar.bz2
From Craig Silverstein: Track_relocs doesn't need to hold onto the
object.
Diffstat (limited to 'gold/reloc.cc')
-rw-r--r--gold/reloc.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/gold/reloc.cc b/gold/reloc.cc
index e72c134..7a95dee 100644
--- a/gold/reloc.cc
+++ b/gold/reloc.cc
@@ -672,12 +672,10 @@ Copy_relocs<size, big_endian>::emit(
template<int size, bool big_endian>
bool
Track_relocs<size, big_endian>::initialize(
- Sized_relobj<size, big_endian>* object,
+ Object* object,
unsigned int reloc_shndx,
unsigned int reloc_type)
{
- this->object_ = object;
-
// If RELOC_SHNDX is -1U, it means there is more than one reloc
// section for the .eh_frame section. We can't handle that case.
if (reloc_shndx == -1U)