aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-10-06 21:44:11 +0000
committerIan Lance Taylor <ian@airs.com>2009-10-06 21:44:11 +0000
commitd6f22b989026083cc5dd9ae65226a424007078e9 (patch)
tree000e3c16beffbcf103590c15e410da9c79f9d007 /gold
parente8a9fcdace0208444ad0ca2a71174c1230b8987a (diff)
downloadgdb-d6f22b989026083cc5dd9ae65226a424007078e9.zip
gdb-d6f22b989026083cc5dd9ae65226a424007078e9.tar.gz
gdb-d6f22b989026083cc5dd9ae65226a424007078e9.tar.bz2
Tweak last patch.
Diffstat (limited to 'gold')
-rw-r--r--gold/i386.cc20
1 files changed, 11 insertions, 9 deletions
diff --git a/gold/i386.cc b/gold/i386.cc
index 0c43761..04a2fa9 100644
--- a/gold/i386.cc
+++ b/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)
- {
- gold_assert(tls_segment != NULL);
- value -= tls_segment->memsz();
- }
- else
+ if (optimized_type == tls::TLSOPT_TO_LE)
{
- // 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;