[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / ARM / symbol-variants.s
blob96fc4bda037debce2c9fc0616951a9dac573bc3f
1 @ RUN: llvm-mc < %s -triple armv7-none-linux-gnueabi -filetype=obj | llvm-objdump -triple armv7-none-linux-gnueabi -r - | FileCheck %s --check-prefix=CHECK --check-prefix=ARM
2 @ RUN: llvm-mc < %s -triple thumbv7-none-linux-gnueabi -filetype=obj | llvm-objdump -triple thumbv7-none-linux-gnueabi -r - | FileCheck %s --check-prefix=CHECK --check-prefix=THUMB
4 @ CHECK-LABEL: RELOCATION RECORDS FOR [.text]
5 .Lsym:
7 @ empty
8 .word f00
9 .word f01
10 @CHECK: 0 R_ARM_ABS32 f00
11 @CHECK: 4 R_ARM_ABS32 f01
13 @ none
14 .word f02(NONE)
15 .word f03(none)
16 @CHECK: 8 R_ARM_NONE f02
17 @CHECK: c R_ARM_NONE f03
19 @ plt
20 bl f04(PLT)
21 bl f05(plt)
22 @ARM: 10 R_ARM_CALL f04
23 @ARM: 14 R_ARM_CALL f05
24 @THUMB: 10 R_ARM_THM_CALL f04
25 @THUMB: 14 R_ARM_THM_CALL f05
27 @ got
28 .word f06(GOT)
29 .word f07(got)
30 @CHECK: 18 R_ARM_GOT_BREL f06
31 @CHECK: 1c R_ARM_GOT_BREL f07
33 @ gotoff
34 .word f08(GOTOFF)
35 .word f09(gotoff)
36 @CHECK: 20 R_ARM_GOTOFF32 f08
37 @CHECK: 24 R_ARM_GOTOFF32 f09
39 @ tpoff
40 .word f10(TPOFF)
41 .word f11(tpoff)
42 @CHECK: 28 R_ARM_TLS_LE32 f10
43 @CHECK: 2c R_ARM_TLS_LE32 f11
45 @ tlsgd
46 .word f12(TLSGD)
47 .word f13(tlsgd)
48 @CHECK: 30 R_ARM_TLS_GD32 f12
49 @CHECK: 34 R_ARM_TLS_GD32 f13
51 @ target1
52 .word f14(TARGET1)
53 .word f15(target1)
54 @CHECK: 38 R_ARM_TARGET1 f14
55 @CHECK: 3c R_ARM_TARGET1 f15
57 @ target2
58 .word f16(TARGET2)
59 .word f17(target2)
60 @CHECK: 40 R_ARM_TARGET2 f16
61 @CHECK: 44 R_ARM_TARGET2 f17
63 @ prel31
64 .word f18(PREL31)
65 .word f19(prel31)
66 @CHECK: 48 R_ARM_PREL31 f18
67 @CHECK: 4c R_ARM_PREL31 f19
69 @ tlsldo
70 .word f20(TLSLDO)
71 .word f21(tlsldo)
72 @CHECK: 50 R_ARM_TLS_LDO32 f20
73 @CHECK: 54 R_ARM_TLS_LDO32 f21
75 @ tlscall
76 .word f22(TLSCALL)
77 .word f23(tlscall)
78 @ CHECK: 58 R_ARM_TLS_CALL f22
79 @ CHECK: 5c R_ARM_TLS_CALL f23
81 @ tlsdesc
82 .word f24(TLSDESC)
83 .word f25(tlsdesc)
84 @ CHECK: 60 R_ARM_TLS_GOTDESC f24
85 @ CHECK: 64 R_ARM_TLS_GOTDESC f25
87 @ prel31 (relative)
88 .word f26(PREL31)-.
89 .word f27(prel31)-.
90 @CHECK: 68 R_ARM_PREL31 f26
91 @CHECK: 6c R_ARM_PREL31 f27
93 @ tlsldm
94 .word f28(TLSLDM)
95 .word f29(tlsldm)
96 @CHECK: 70 R_ARM_TLS_LDM32 f28
97 @CHECK: 74 R_ARM_TLS_LDM32 f29
99 @ got_prel
100 .word f30(GOT_PREL) + (. - .Lsym)
101 ldr r3, =f31(GOT_PREL)
102 @ CHECK: 78 R_ARM_GOT_PREL f30
103 @ CHECK: 80 R_ARM_GOT_PREL f31