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/tilegx.cc | |
parent | 6c6b70567b85aedf48d80a6de9c4747df4f1386f (diff) | |
download | gdb-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/tilegx.cc')
-rw-r--r-- | gold/tilegx.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gold/tilegx.cc b/gold/tilegx.cc index 7babf4e..ab97640 100644 --- a/gold/tilegx.cc +++ b/gold/tilegx.cc @@ -1,6 +1,6 @@ // tilegx.cc -- tilegx target support for gold. -// Copyright 2012 Free Software Foundation, Inc. +// Copyright 2012, 2013 Free Software Foundation, Inc. // Written by Jiong Wang (jiwang@tilera.com) // This file is part of gold. @@ -4327,6 +4327,9 @@ Target_tilegx<size, big_endian>::Relocate::relocate( typename elfcpp::Elf_types<size>::Elf_Addr address, section_size_type) { + if (view == NULL) + return true; + typedef Tilegx_relocate_functions<size, big_endian> TilegxReloc; typename TilegxReloc::Tilegx_howto r_howto; |