aboutsummaryrefslogtreecommitdiff
path: root/gold/x86_64.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2013-04-27 00:53:16 +0000
committerIan Lance Taylor <ian@airs.com>2013-04-27 00:53:16 +0000
commit0e8048633ef3388613bbf33822f708fc7331f234 (patch)
tree366262a5bd5b546a22a8b9098ee66e866f2ac49c /gold/x86_64.cc
parent6c6b70567b85aedf48d80a6de9c4747df4f1386f (diff)
downloadfsf-binutils-gdb-0e8048633ef3388613bbf33822f708fc7331f234.zip
fsf-binutils-gdb-0e8048633ef3388613bbf33822f708fc7331f234.tar.gz
fsf-binutils-gdb-0e8048633ef3388613bbf33822f708fc7331f234.tar.bz2
* target-reloc.h (relocate_section): If the reloc offset is out of
range, pass VIEW as NULL to relocate.relocate. * arm.cc (Target_arm:Relocate::relocate): Check for a NULL view. * i386.cc (Target_i386::Relocate::relocate): Likewise. * powerpc.cc (Target_powerpc::Relocate::relocate): Likewise. * sparc.cc (Target_sparc::Relocate::relocate): Likewise. * tilegx.cc (Target_tilegx::Relocate::relocate): Likewise. * x86_64.cc (Target_x86_64::Relocate::relocate): Likewise.
Diffstat (limited to 'gold/x86_64.cc')
-rw-r--r--gold/x86_64.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/gold/x86_64.cc b/gold/x86_64.cc
index 8119983..8f773bd 100644
--- a/gold/x86_64.cc
+++ b/gold/x86_64.cc
@@ -1,6 +1,6 @@
// x86_64.cc -- x86_64 target support for gold.
-// Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012
+// Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
// Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
@@ -3230,6 +3230,9 @@ Target_x86_64<size>::Relocate::relocate(
}
}
+ if (view == NULL)
+ return true;
+
const Sized_relobj_file<size, false>* object = relinfo->object;
// Pick the value to use for symbols defined in the PLT.