[PATCH] D22461: [ARM] Add support for tlsldm operator to llvm-mc
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 19 07:23:12 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL275977: Add support for tlsldm assembler operator to ARM target (authored by psmith).
Changed prior to commit:
https://reviews.llvm.org/D22461?vs=64311&id=64496#toc
Repository:
rL LLVM
https://reviews.llvm.org/D22461
Files:
llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp
llvm/trunk/test/MC/ARM/symbol-variants.s
Index: llvm/trunk/test/MC/ARM/symbol-variants.s
===================================================================
--- llvm/trunk/test/MC/ARM/symbol-variants.s
+++ llvm/trunk/test/MC/ARM/symbol-variants.s
@@ -90,8 +90,14 @@
@CHECK: 68 R_ARM_PREL31 f26
@CHECK: 6c R_ARM_PREL31 f27
+@ tlsldm
+.word f28(TLSLDM)
+.word f29(tlsldm)
+ at CHECK: 70 R_ARM_TLS_LDM32 f28
+ at CHECK: 74 R_ARM_TLS_LDM32 f29
+
@ got_prel
-.word f28(GOT_PREL) + (. - .Lsym)
- ldr r3, =f29(GOT_PREL)
-@ CHECK: 70 R_ARM_GOT_PREL f28
-@ CHECK: 78 R_ARM_GOT_PREL f29
+.word f30(GOT_PREL) + (. - .Lsym)
+ ldr r3, =f31(GOT_PREL)
+@ CHECK: 78 R_ARM_GOT_PREL f30
+@ CHECK: 80 R_ARM_GOT_PREL f31
Index: llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp
===================================================================
--- llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp
+++ llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp
@@ -221,6 +221,9 @@
case MCSymbolRefExpr::VK_TLSDESC:
Type = ELF::R_ARM_TLS_GOTDESC;
break;
+ case MCSymbolRefExpr::VK_TLSLDM:
+ Type = ELF::R_ARM_TLS_LDM32;
+ break;
case MCSymbolRefExpr::VK_ARM_TLSDESCSEQ:
Type = ELF::R_ARM_TLS_DESCSEQ;
break;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22461.64496.patch
Type: text/x-patch
Size: 1243 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160719/a2a9554e/attachment.bin>
More information about the llvm-commits
mailing list