aboutsummaryrefslogtreecommitdiff
path: root/gold/x86_64.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-30 04:23:19 +0000
committerIan Lance Taylor <iant@google.com>2007-10-30 04:23:19 +0000
commitc1866bd5e3eadb2b03515e13f7e8a4dc7377762a (patch)
tree335a2140bf01c6600bd264a3f744606d08dbcd44 /gold/x86_64.cc
parentee9e9e864486f29b33d7533d81dd0ab852a92a7d (diff)
downloadgdb-c1866bd5e3eadb2b03515e13f7e8a4dc7377762a.zip
gdb-c1866bd5e3eadb2b03515e13f7e8a4dc7377762a.tar.gz
gdb-c1866bd5e3eadb2b03515e13f7e8a4dc7377762a.tar.bz2
Adjust PLTOFF64 calculation.
Diffstat (limited to 'gold/x86_64.cc')
-rw-r--r--gold/x86_64.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/x86_64.cc b/gold/x86_64.cc
index 158090c..a90f8f4 100644
--- a/gold/x86_64.cc
+++ b/gold/x86_64.cc
@@ -1265,8 +1265,8 @@ Target_x86_64::Relocate::relocate(const Relocate_info<64, false>* relinfo,
|| gsym->final_value_is_known());
elfcpp::Elf_types<64>::Elf_Addr got_address;
got_address = target->got_section(NULL, NULL)->address();
- Relocate_functions<64, false>::pcrela64(view, object, psymval, addend,
- - got_address);
+ Relocate_functions<64, false>::rela64(view, object, psymval,
+ addend - got_address);
}
case elfcpp::R_X86_64_GOT32: