freebsd-skq/contrib/llvm/lib
Ed Maste e93a7dab19 llvm: Backport upstream r229195 to fix arm64 TLS relocations
As is described at http://llvm.org/bugs/show_bug.cgi?id=22408, the GNU
  linkers ld.bfd and ld.gold currently only support a subset of the
  whole range of AArch64 ELF TLS relocations. Furthermore, they assume
  that some of the code sequences to access thread-local variables are
  produced in a very specific sequence.  When the sequence is not as the
  linker expects, it can silently mis-relaxe/mis-optimize the
  instructions.
  Even if that wouldn't be the case, it's good to produce the exact
  sequence, as that ensures that linkers can perform optimizing
  relaxations.

  This patch:

  * implements support for 16MiB TLS area size instead of 4GiB TLS area
    size. Ideally clang would grow an -mtls-size option to allow support
    for both, but that's not part of this patch.
  * by default doesn't produce local dynamic access patterns, as even
    modern ld.bfd and ld.gold linkers do not support the associated
    relocations. An option (-aarch64-elf-ldtls-generation) is added to
    enable generation of local dynamic code sequence, but is off by
    default.
  * makes sure that the exact expected code sequence for local dynamic
    and general dynamic accesses is produced, by making use of a new
    pseudo instruction. The patch also removes two
    (AArch64ISD::TLSDESC_BLR, AArch64ISD::TLSDESC_CALL) pre-existing
    AArch64-specific pseudo SDNode instructions that are superseded by
    the new one (TLSDESC_CALLSEQ).

Submitted by:	Kristof Beyls
Differential Revision:	https://reviews.freebsd.org/D2175
2015-03-30 20:01:41 +00:00
..
Analysis Merge llvm 3.6.0rc3 from ^/vendor/llvm/dist, merge clang 3.6.0rc3 from 2015-02-14 14:13:00 +00:00
AsmParser Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 from 2015-01-25 23:36:55 +00:00
Bitcode Merge llvm 3.6.0rc4 from ^/vendor/llvm/dist, merge clang 3.6.0rc4 from 2015-02-19 22:20:19 +00:00
CodeGen Pull in r230348 from upstream llvm trunk (by Tim Northover): 2015-03-23 21:13:29 +00:00
DebugInfo Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 from 2015-01-25 23:36:55 +00:00
ExecutionEngine Merge llvm 3.6.0rc4 from ^/vendor/llvm/dist, merge clang 3.6.0rc4 from 2015-02-19 22:20:19 +00:00
IR Merge llvm 3.6.0rc4 from ^/vendor/llvm/dist, merge clang 3.6.0rc4 from 2015-02-19 22:20:19 +00:00
IRReader Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 from 2015-01-25 23:36:55 +00:00
LineEditor Cleanup upstream build infrastructure files that we don't use. 2014-11-24 20:57:20 +00:00
Linker Merge llvm 3.6.0 final from ^/vendor/llvm/dist, merge clang 3.6.0 final 2015-02-25 18:50:24 +00:00
LTO Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 from 2015-01-25 23:36:55 +00:00
MC Merge llvm 3.6.0rc3 from ^/vendor/llvm/dist, merge clang 3.6.0rc3 from 2015-02-14 14:13:00 +00:00
Object Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 from 2015-01-25 23:36:55 +00:00
Option Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 from 2015-01-25 23:36:55 +00:00
ProfileData Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 from 2015-01-25 23:36:55 +00:00
Support Merge llvm 3.6.0rc3 from ^/vendor/llvm/dist, merge clang 3.6.0rc3 from 2015-02-14 14:13:00 +00:00
TableGen Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 from 2015-01-25 23:36:55 +00:00
Target llvm: Backport upstream r229195 to fix arm64 TLS relocations 2015-03-30 20:01:41 +00:00
Transforms Merge ^/head r279023 through r279162. 2015-02-22 16:04:37 +00:00