[PATCH] D22563: [ARM][LLD] Initial support for local dynamic TLS for ARM Target

Peter Smith via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 20 03:03:37 PDT 2016


peter.smith created this revision.
peter.smith added reviewers: ruiu, rafael.
peter.smith added a subscriber: llvm-commits.
Herald added subscribers: rengolin, aemerson.

Add support for the local dynamic model ARM TLS relocations:
- R_ARM_TLS_LDM32
- R_ARM_TLS_LDO32
    
The local dynamic model was not in the inital ARM TLS patch as there was a dependency on llvm-mc (https://reviews.llvm.org/D22461) which has now been closed.

The local dynamic implementation and tests follows the same model as the other ARM TLS models. The R_ARM_TLS_LDO32 is implemented as R_ABS expr type as the getVA() for a TLS symbol will return the offset from the start of the TLS block.

References:
TLS model: http://infocenter.arm.com/help/topic/com.arm.doc.ihi0045e/IHI0045E_ABI_addenda.pdf
Relocations: http://infocenter.arm.com/help/topic/com.arm.doc.ihi0044f/IHI0044F_aaelf.pdf 



https://reviews.llvm.org/D22563

Files:
  ELF/Target.cpp
  test/ELF/arm-tls-ldm32.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22563.64651.patch
Type: text/x-patch
Size: 3727 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160720/4eb11f64/attachment.bin>


More information about the llvm-commits mailing list