diff options
author | Sriraman Tallam <tmsriram@google.com> | 2009-08-07 18:29:54 +0000 |
---|---|---|
committer | Sriraman Tallam <tmsriram@google.com> | 2009-08-07 18:29:54 +0000 |
commit | 277210621532e70db4d9cdebce345d1c7846dacf (patch) | |
tree | f28a1f0b4e589de2341354f61ccf87eeabfa8e7b /gold/x86_64.cc | |
parent | 918d9742419429e4f063e4f8ff624f00237456a4 (diff) | |
download | gdb-277210621532e70db4d9cdebce345d1c7846dacf.zip gdb-277210621532e70db4d9cdebce345d1c7846dacf.tar.gz gdb-277210621532e70db4d9cdebce345d1c7846dacf.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'gold/x86_64.cc')
-rw-r--r-- | gold/x86_64.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gold/x86_64.cc b/gold/x86_64.cc index 22d5cc6..9287d58 100644 --- a/gold/x86_64.cc +++ b/gold/x86_64.cc @@ -2119,7 +2119,6 @@ Target_x86_64::Relocate::relocate_tls(const Relocate_info<64, false>* relinfo, break; case elfcpp::R_X86_64_DTPOFF32: - gold_assert(tls_segment != NULL); if (optimized_type == tls::TLSOPT_TO_LE) { // This relocation type is used in debugging information. @@ -2127,18 +2126,23 @@ Target_x86_64::Relocate::relocate_tls(const Relocate_info<64, false>* relinfo, // haven't seen a TLSLD reloc, then we assume we should not // optimize this reloc. if (this->saw_tls_block_reloc_) - value -= tls_segment->memsz(); + { + gold_assert(tls_segment != NULL); + value -= tls_segment->memsz(); + } } Relocate_functions<64, false>::rela32(view, value, addend); break; case elfcpp::R_X86_64_DTPOFF64: - gold_assert(tls_segment != NULL); if (optimized_type == tls::TLSOPT_TO_LE) { // See R_X86_64_DTPOFF32, just above, for why we test this. if (this->saw_tls_block_reloc_) - value -= tls_segment->memsz(); + { + gold_assert(tls_segment != NULL); + value -= tls_segment->memsz(); + } } Relocate_functions<64, false>::rela64(view, value, addend); break; |