mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-20 15:03:31 +08:00
Tweak last patch.
This commit is contained in:
parent
e8a9fcdace
commit
d6f22b9890
20
gold/i386.cc
20
gold/i386.cc
@ -2017,16 +2017,18 @@ Target_i386::Relocate::relocate_tls(const Relocate_info<32, false>* relinfo,
|
||||
// This reloc can appear in debugging sections, in which case we
|
||||
// won't see the TLS_LDM reloc. The local_dynamic_type field
|
||||
// tells us this.
|
||||
if (optimized_type == tls::TLSOPT_TO_LE
|
||||
&& this->local_dynamic_type_ != LOCAL_DYNAMIC_NONE)
|
||||
if (optimized_type == tls::TLSOPT_TO_LE)
|
||||
{
|
||||
gold_assert(tls_segment != NULL);
|
||||
value -= tls_segment->memsz();
|
||||
}
|
||||
else
|
||||
{
|
||||
// We may see the LDM later.
|
||||
this->ldo_addrs_.push_back(view);
|
||||
if (this->local_dynamic_type_ != LOCAL_DYNAMIC_NONE)
|
||||
{
|
||||
gold_assert(tls_segment != NULL);
|
||||
value -= tls_segment->memsz();
|
||||
}
|
||||
else
|
||||
{
|
||||
// We may see the LDM later.
|
||||
this->ldo_addrs_.push_back(view);
|
||||
}
|
||||
}
|
||||
Relocate_functions<32, false>::rel32(view, value);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user