Tweak last patch.
authorIan Lance Taylor <ian@airs.com>
Tue, 6 Oct 2009 21:44:11 +0000 (21:44 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 6 Oct 2009 21:44:11 +0000 (21:44 +0000)
gold/i386.cc

index 0c4376187445474f79e480179e61080c00ef7b06..04a2fa9c8ffcc6042bc953e8b93bd301c822ef50 100644 (file)
@@ -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;