aboutsummaryrefslogtreecommitdiff
path: root/gold/x86_64.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2008-04-11 23:37:24 +0000
committerCary Coutant <ccoutant@google.com>2008-04-11 23:37:24 +0000
commit009a67a28f63887cc254472be0bb7b75a318381e (patch)
tree35e17562736a16050ee5c8d3672045f818a05717 /gold/x86_64.cc
parent759b1a245d3a5953d0bed982f81e5f91eff286f8 (diff)
downloadgdb-009a67a28f63887cc254472be0bb7b75a318381e.zip
gdb-009a67a28f63887cc254472be0bb7b75a318381e.tar.gz
gdb-009a67a28f63887cc254472be0bb7b75a318381e.tar.bz2
* i386.cc (Target_i386::got_mod_index_entry): Restore code previously
thought unnecessary. * x86_64.cc (Target_x86_64::got_mod_index_entry): Likewise.
Diffstat (limited to 'gold/x86_64.cc')
-rw-r--r--gold/x86_64.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gold/x86_64.cc b/gold/x86_64.cc
index e60b3f6..105f770 100644
--- a/gold/x86_64.cc
+++ b/gold/x86_64.cc
@@ -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_;