diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-01-30 04:02:31 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-01-30 04:02:31 +0000 |
commit | 9629ad300552f1a34f806eae90afb85bc6c55e9b (patch) | |
tree | 901a202de9c80f36d61e0730b4e6357b4a442d5a /include | |
parent | d26c0e731ced4dfcb1dfe9c67b0822fe96d0ad6a (diff) | |
download | llvm-9629ad300552f1a34f806eae90afb85bc6c55e9b.tar.gz llvm-9629ad300552f1a34f806eae90afb85bc6c55e9b.tar.bz2 llvm-9629ad300552f1a34f806eae90afb85bc6c55e9b.tar.xz |
ARM: support tlscall relocations
This adds support for TLS CALL relocations. TLS CALL relocations are used to
indicate to the linker to generate appropriate entries to resolve TLS references
via an appropriate function invocation (e.g. __tls_get_addr(PLT)).
In order to accomodate the linker relaxation of the TLS access model for the
references (GD/LD -> IE, IE -> LE), the relocation addend must be incomplete.
This requires that the partial inplace value is also incomplete (i.e. 0). We
simply avoid the offset value calculation at the time of the fixup adjustment in
the ARM assembler backend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCExpr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/MC/MCExpr.h b/include/llvm/MC/MCExpr.h index f556d6237f..b62252057f 100644 --- a/include/llvm/MC/MCExpr.h +++ b/include/llvm/MC/MCExpr.h @@ -166,6 +166,7 @@ public: VK_ARM_TARGET2, VK_ARM_PREL31, VK_ARM_TLSLDO, // symbol(tlsldo) + VK_ARM_TLSCALL, // symbol(tlscall) VK_PPC_LO, // symbol@l VK_PPC_HI, // symbol@h |