aboutsummaryrefslogtreecommitdiff
path: root/gold/i386.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/i386.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/i386.cc')
-rw-r--r--gold/i386.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/gold/i386.cc b/gold/i386.cc
index c265115..59ec885 100644
--- a/gold/i386.cc
+++ b/gold/i386.cc
@@ -1,6 +1,6 @@
// i386.cc -- i386 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>.
@@ -2661,6 +2661,9 @@ Target_i386::Relocate::relocate(const Relocate_info<32, false>* relinfo,
}
}
+ if (view == NULL)
+ return true;
+
const Sized_relobj_file<32, false>* object = relinfo->object;
// Pick the value to use for symbols defined in shared objects.