* i386.cc (Target_i386::got_mod_index_entry): Restore code previously

thought unnecessary.
	* x86_64.cc (Target_x86_64::got_mod_index_entry): Likewise.
This commit is contained in:
Cary Coutant 2008-04-11 23:37:24 +00:00
parent 759b1a245d
commit 009a67a28f
3 changed files with 8 additions and 0 deletions

View 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

View 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_;

View 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_;