Files
clang-p2996/lld/test/ELF
Peter Wu 5391489674 [ELF][X86_64] Fix corrupted LD -> LE optimization for TLS without PLT
The LD -> LE optimization for Thread-Local Storage without PLT requires
an additional "66" prefix, otherwise the next instruction will be
corrupted, causing runtime misbehavior (crashes) of the linked object.

The other (GD -> IE/LD) optimizations are the same with or without PLT,
but add tests for completeness. The instructions are copied from
https://raw.githubusercontent.com/wiki/hjl-tools/x86-psABI/x86-64-psABI-1.0.pdf#subsection.11.1.2

This does not try to address ILP32 (x32) support.

Fixes https://bugs.llvm.org/show_bug.cgi?id=37303

Reviewed By: ruiu

Differential Revision: https://reviews.llvm.org/D56779

llvm-svn: 351396
2019-01-16 23:28:51 +00:00
..
2019-01-10 17:57:30 +00:00
2018-10-04 00:07:59 +00:00
2018-07-05 16:03:20 +00:00
2018-03-14 22:05:12 +00:00
2018-03-01 01:05:04 +00:00
2018-11-14 17:56:43 +00:00
2018-11-14 17:56:43 +00:00
2017-11-15 16:56:20 +00:00
2018-06-26 22:20:04 +00:00
2018-04-09 12:45:29 +00:00
2017-11-22 22:00:50 +00:00
2018-11-27 09:48:17 +00:00
2018-06-26 22:20:04 +00:00
2018-04-20 01:21:24 +00:00
2017-11-28 20:17:58 +00:00
2018-04-25 00:29:13 +00:00
2017-12-12 20:00:30 +00:00
2018-06-26 22:20:04 +00:00
2018-08-08 14:50:33 +00:00
2018-08-08 14:50:33 +00:00
2018-08-08 14:50:33 +00:00
2018-08-08 14:50:33 +00:00
2018-03-27 16:10:01 +00:00
2017-11-15 16:56:20 +00:00
2019-01-10 17:57:30 +00:00
2018-08-24 16:22:42 +00:00
2018-11-14 17:56:43 +00:00
2018-01-31 02:03:55 +00:00
2017-11-28 20:13:12 +00:00
2018-08-09 17:59:56 +00:00
2018-08-09 17:59:56 +00:00
2018-08-09 17:59:56 +00:00
2018-08-09 17:59:56 +00:00
2018-08-09 17:59:56 +00:00
2018-08-09 17:59:56 +00:00
2018-03-14 20:29:45 +00:00
2018-10-08 17:24:29 +00:00
2018-12-21 22:57:11 +00:00
2018-04-24 23:03:58 +00:00
2018-08-22 07:02:26 +00:00
2018-08-22 07:02:26 +00:00
2018-08-22 07:02:26 +00:00
2018-04-26 06:10:18 +00:00