aboutsummaryrefslogtreecommitdiff
path: root/gold/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-05-01 10:08:31 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-05-01 10:08:48 -0700
commit6d520e36de0229eefe2f1671438cc8333a90b5e6 (patch)
tree715843d140e793d17d2f3ef1728987bcf30704cc /gold/ChangeLog
parente10cfd063328872efa721b4a08b9d52486fb5878 (diff)
downloadgdb-6d520e36de0229eefe2f1671438cc8333a90b5e6.zip
gdb-6d520e36de0229eefe2f1671438cc8333a90b5e6.tar.gz
gdb-6d520e36de0229eefe2f1671438cc8333a90b5e6.tar.bz2
gold: x86-64: Fix TLSDESC -> LE relaxation
X86-64 TLSDESC sequences can be: 4c 8d 0d 00 00 00 00 leaq foo@TLSDESC(%rip), %r9 4c 89 c8 movq %r9, %rax ff 10 call *foo@TLSCALL(%rax) TLSDESC -> LE relaxation can turn them into: 49 c7 c1 fc ff ff ff mov $0xfffffffffffffffc,%r9 4c 89 c8 mov %r9,%rax 66 90 xchg %ax,%ax We need to check and update the REX byte in this case. PR gold/25473 * x86_64.cc (Target_x86_64<size>::Relocate::tls_desc_gd_to_ie): Properly check r8 - r15 in "lea foo@TLSDESC(%rip), %reg". (Target_x86_64<size>::Relocate::tls_desc_gd_to_le): Properly relax r8 - r15 in "lea foo@TLSDESC(%rip), %reg". * testsuite/Makefile.am (check_SCRIPTS): Add x86_64_gd_to_le.sh. (check_DATA): Add x86_64_gd_to_le.stdout. (MOSTLYCLEANFILES): Add x86_64_gd_to_le. (x86_64_gd_to_le.o): New target. (x86_64_gd_to_le): Likewise. (x86_64_gd_to_le.stdout): Likewise. * testsuite/Makefile.in: Regenerated. * testsuite/x86_64_gd_to_le.s: New file. * testsuite/x86_64_gd_to_le.sh: Likewise.
Diffstat (limited to 'gold/ChangeLog')
-rw-r--r--gold/ChangeLog17
1 files changed, 17 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 97044b6..0b7cb07 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,5 +1,22 @@
2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
+ PR gold/25473
+ * x86_64.cc (Target_x86_64<size>::Relocate::tls_desc_gd_to_ie):
+ Properly check r8 - r15 in "lea foo@TLSDESC(%rip), %reg".
+ (Target_x86_64<size>::Relocate::tls_desc_gd_to_le): Properly
+ relax r8 - r15 in "lea foo@TLSDESC(%rip), %reg".
+ * testsuite/Makefile.am (check_SCRIPTS): Add x86_64_gd_to_le.sh.
+ (check_DATA): Add x86_64_gd_to_le.stdout.
+ (MOSTLYCLEANFILES): Add x86_64_gd_to_le.
+ (x86_64_gd_to_le.o): New target.
+ (x86_64_gd_to_le): Likewise.
+ (x86_64_gd_to_le.stdout): Likewise.
+ * testsuite/Makefile.in: Regenerated.
+ * testsuite/x86_64_gd_to_le.s: New file.
+ * testsuite/x86_64_gd_to_le.sh: Likewise.
+
+2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
+
* testsuite/odr_violation2.cc (Ordering::operator()): Make
expression even more complex.