diff options
author | Ian Lance Taylor <ian@airs.com> | 2013-04-27 00:53:16 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2013-04-27 00:53:16 +0000 |
commit | 0e8048633ef3388613bbf33822f708fc7331f234 (patch) | |
tree | 366262a5bd5b546a22a8b9098ee66e866f2ac49c /gold/sparc.cc | |
parent | 6c6b70567b85aedf48d80a6de9c4747df4f1386f (diff) | |
download | binutils-0e8048633ef3388613bbf33822f708fc7331f234.zip binutils-0e8048633ef3388613bbf33822f708fc7331f234.tar.gz binutils-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/sparc.cc')
-rw-r--r-- | gold/sparc.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gold/sparc.cc b/gold/sparc.cc index 6db3b10..acb39cd 100644 --- a/gold/sparc.cc +++ b/gold/sparc.cc @@ -1,6 +1,6 @@ // sparc.cc -- sparc 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>. // This file is part of gold. @@ -3189,6 +3189,10 @@ Target_sparc<size, big_endian>::Relocate::relocate( return false; } } + + if (view == NULL) + return true; + if (this->reloc_adjust_addr_ == view) view -= 4; |