aboutsummaryrefslogtreecommitdiff
path: root/gold/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2014-05-27 12:19:33 -0700
committerH.J. Lu <hjl.tools@gmail.com>2014-05-27 12:20:18 -0700
commitc23dd3426c75fbf7fa9f30a4082be034818967c1 (patch)
treede616456e981ae0480f27a2c86fe71e03d177edc /gold/ChangeLog
parentadd6c04d828e0f68ded81cfeec0fe74ca0107881 (diff)
downloadgdb-c23dd3426c75fbf7fa9f30a4082be034818967c1.zip
gdb-c23dd3426c75fbf7fa9f30a4082be034818967c1.tar.gz
gdb-c23dd3426c75fbf7fa9f30a4082be034818967c1.tar.bz2
Properly handle 64-bit GOT relocations
This patch fixes 2 issues: 1. Since the GOT offset is always negative, we need to use signed int to support 64-bit GOT relocations. 2. R_X86_64_PLTOFF64 uses the address of GLOBAL_OFFSET_TABLE, which is the address of the .got.plt section, not the .got section.
Diffstat (limited to 'gold/ChangeLog')
-rw-r--r--gold/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index f0ee1f7..a9dd87b 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,9 @@
+2014-05-27 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gold/16945
+ * x86_64.cc (Target_x86_64::Relocate::relocate): Use signed int
+ for got_offset. Properly get GOT address for R_X86_64_PLTOFF64.
+
2014-05-15 Alan Modra <amodra@gmail.com>
* powerpc.cc (do_plt_fde_location): Handle zero length .glink.