aboutsummaryrefslogtreecommitdiff
path: root/gold/powerpc.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/powerpc.cc
parent6c6b70567b85aedf48d80a6de9c4747df4f1386f (diff)
downloadgdb-0e8048633ef3388613bbf33822f708fc7331f234.zip
gdb-0e8048633ef3388613bbf33822f708fc7331f234.tar.gz
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/powerpc.cc')
-rw-r--r--gold/powerpc.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/gold/powerpc.cc b/gold/powerpc.cc
index fdb68a1..ca4aaa2 100644
--- a/gold/powerpc.cc
+++ b/gold/powerpc.cc
@@ -1,6 +1,6 @@
// powerpc.cc -- powerpc target support for gold.
-// Copyright 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
+// Copyright 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
// Written by David S. Miller <davem@davemloft.net>
// and David Edelsohn <edelsohn@gnu.org>
@@ -6221,6 +6221,9 @@ Target_powerpc<size, big_endian>::Relocate::relocate(
Address address,
section_size_type view_size)
{
+ if (view == NULL)
+ return true;
+
switch (this->maybe_skip_tls_get_addr_call(r_type, gsym))
{
case Track_tls::NOT_EXPECTED: