Tweak last patch.

This commit is contained in:
Ian Lance Taylor
2009-10-06 21:44:11 +00:00
parent e8a9fcdace
commit d6f22b9890

View File

@ -2017,8 +2017,9 @@ Target_i386::Relocate::relocate_tls(const Relocate_info<32, false>* relinfo,
// This reloc can appear in debugging sections, in which case we // This reloc can appear in debugging sections, in which case we
// won't see the TLS_LDM reloc. The local_dynamic_type field // won't see the TLS_LDM reloc. The local_dynamic_type field
// tells us this. // tells us this.
if (optimized_type == tls::TLSOPT_TO_LE if (optimized_type == tls::TLSOPT_TO_LE)
&& this->local_dynamic_type_ != LOCAL_DYNAMIC_NONE) {
if (this->local_dynamic_type_ != LOCAL_DYNAMIC_NONE)
{ {
gold_assert(tls_segment != NULL); gold_assert(tls_segment != NULL);
value -= tls_segment->memsz(); value -= tls_segment->memsz();
@ -2028,6 +2029,7 @@ Target_i386::Relocate::relocate_tls(const Relocate_info<32, false>* relinfo,
// We may see the LDM later. // We may see the LDM later.
this->ldo_addrs_.push_back(view); this->ldo_addrs_.push_back(view);
} }
}
Relocate_functions<32, false>::rel32(view, value); Relocate_functions<32, false>::rel32(view, value);
break; break;