aboutsummaryrefslogtreecommitdiff
path: root/gold/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-10-22 04:56:10 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-10-22 04:56:57 -0700
commit2891b491040ac84dfe0013454b2aa834de7b539c (patch)
tree623066a0eabe1405028b7462c884492a4ee71efc /gold/ChangeLog
parent493d4b48decc2b3c5fe9d2df68bcee67fdd8b7cb (diff)
downloadgdb-2891b491040ac84dfe0013454b2aa834de7b539c.zip
gdb-2891b491040ac84dfe0013454b2aa834de7b539c.tar.gz
gdb-2891b491040ac84dfe0013454b2aa834de7b539c.tar.bz2
Gold: Don't fail on R_X86_64_[REX_]GOTPCRELX relocations
This patch updates gold to treat the R_X86_64_GOTPCRELX and R_X86_64_REX_GOTPCRELX relocations proposed in https://groups.google.com/forum/#!topic/x86-64-abi/n9AWHogmVY0 the same as R_X86_64_GOTPCREL. FIXME: Gold should perform the transformations as suggested. elfcpp/ * x86_64.h (R_X86_64_GOTPCRELX): New. (R_X86_64_REX_GOTPCRELX): Likewise. gold/ * x86_64.cc (Target_x86_64<size>::Scan::get_reference_flags): Treat R_X86_64_GOTPCRELX and R_X86_64_REX_GOTPCRELX the same as R_X86_64_GOTPCREL. (Target_x86_64<size>::Scan::local): Likewise. (Target_x86_64<size>::Scan::possible_function_pointer_reloc): Likewise. (Target_x86_64<size>::Scan::global): Likewise. (Target_x86_64<size>::Relocate::relocate): Likewise. (Target_x86_64<size>::Relocatable_size_for_reloc::get_size_for_reloc): Likewise.
Diffstat (limited to 'gold/ChangeLog')
-rw-r--r--gold/ChangeLog13
1 files changed, 13 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index c0af029..46a0636 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,5 +1,18 @@
2015-10-22 H.J. Lu <hongjiu.lu@intel.com>
+ * x86_64.cc (Target_x86_64<size>::Scan::get_reference_flags):
+ Treat R_X86_64_GOTPCRELX and R_X86_64_REX_GOTPCRELX the same
+ as R_X86_64_GOTPCREL.
+ (Target_x86_64<size>::Scan::local): Likewise.
+ (Target_x86_64<size>::Scan::possible_function_pointer_reloc):
+ Likewise.
+ (Target_x86_64<size>::Scan::global): Likewise.
+ (Target_x86_64<size>::Relocate::relocate): Likewise.
+ (Target_x86_64<size>::Relocatable_size_for_reloc::get_size_for_reloc):
+ Likewise.
+
+2015-10-22 H.J. Lu <hongjiu.lu@intel.com>
+
* i386.cc (Target_i386::Scan::get_reference_flags(): Treat
R_386_GOT32X the same as R_386_GOT32.
(Target_i386::Scan::local): Likewise.