* i386.cc (Target_i386::got_mod_index_entry): Restore code previously
authorCary Coutant <ccoutant@google.com>
Fri, 11 Apr 2008 23:37:24 +0000 (23:37 +0000)
committerCary Coutant <ccoutant@google.com>
Fri, 11 Apr 2008 23:37:24 +0000 (23:37 +0000)
thought unnecessary.
* x86_64.cc (Target_x86_64::got_mod_index_entry): Likewise.

gold/ChangeLog
gold/i386.cc
gold/x86_64.cc

index c022353bceef47fc9b98a478ab695565dd913afe..c07a70cc30d6cb2e10469428345ac6d8a68af09b 100644 (file)
@@ -1,3 +1,9 @@
+2008-04-11  Cary Coutant  <ccoutant@google.com>
+
+       * i386.cc (Target_i386::got_mod_index_entry): Restore code previously
+       thought unnecessary.
+       * x86_64.cc (Target_x86_64::got_mod_index_entry): Likewise.
+
 2008-04-11  Ian Lance Taylor  <iant@google.com>
 
        * output.h (class Output_section_data): Remove inline definition
index c0b2e85335127eb108f834e5768fa40bd666bf88..d49350acb4572f51b807816c0d25482c79826b36 100644 (file)
@@ -725,6 +725,7 @@ Target_i386::got_mod_index_entry(Symbol_table* symtab, Layout* layout,
       unsigned int got_offset = got->add_constant(0);
       rel_dyn->add_local(object, 0, elfcpp::R_386_TLS_DTPMOD32, got,
                          got_offset);
+      got->add_constant(0);
       this->got_mod_index_offset_ = got_offset;
     }
   return this->got_mod_index_offset_;
index e60b3f6fa40c9e372108688a673d7e9021063d91..105f77074f1e61ef499894633c7661825ad9c638 100644 (file)
@@ -797,6 +797,7 @@ Target_x86_64::got_mod_index_entry(Symbol_table* symtab, Layout* layout,
       unsigned int got_offset = got->add_constant(0);
       rela_dyn->add_local(object, 0, elfcpp::R_X86_64_DTPMOD64, got,
                           got_offset, 0);
+      got->add_constant(0);
       this->got_mod_index_offset_ = got_offset;
     }
   return this->got_mod_index_offset_;