gold: x86-64: Fix TLSDESC relaxation for x32
[deliverable/binutils-gdb.git] / gold / ChangeLog
index 0b7cb07fddf9eec920f916e2212f10726ec6b49f..23fb07098060e0eead32953e434dff045c5e45e1 100644 (file)
@@ -1,3 +1,20 @@
+2020-05-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR gold/25426
+       * x86_64.cc (Target_x86_64<size>::Relocate::tls_desc_gd_to_ie):
+       For x32, relax "rex leal foo@tlsdesc(%rip), %reg" to
+       "rex movl foo@gottpoff(%rip), %eax" and relax ""call *(%eax)"
+       to "nopl (%rax)".
+       (Target_x86_64<size>::Relocate::tls_desc_gd_to_le): For x32,
+       relax "rex leal foo@tlsdesc(%rip), %reg" to
+       "rex movl foo@tpoff, %eax" and relax "call *foo@tlscall(%eax)"
+       to "nopl (%rax)".
+       * testsuite/Makefile.am (tls_test_gnu2.o): Depend on
+       gcctestdir/as.
+       (tls_test_file2_gnu2.o): Likewise.
+       (tls_test_c_gnu2.o): Likewise.
+       * testsuite/Makefile.in: Regenerated.
+
 2020-05-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR gold/25473
This page took 0.024207 seconds and 4 git commands to generate.