1*9880d681SAndroid Build Coastguard Worker@ 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*9880d681SAndroid Build Coastguard Worker@ 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 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker@ CHECK-LABEL: RELOCATION RECORDS FOR [.rel.text] 5*9880d681SAndroid Build Coastguard Worker.Lsym: 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker@ empty 8*9880d681SAndroid Build Coastguard Worker.word f00 9*9880d681SAndroid Build Coastguard Worker.word f01 10*9880d681SAndroid Build Coastguard Worker@CHECK: 0 R_ARM_ABS32 f00 11*9880d681SAndroid Build Coastguard Worker@CHECK: 4 R_ARM_ABS32 f01 12*9880d681SAndroid Build Coastguard Worker 13*9880d681SAndroid Build Coastguard Worker@ none 14*9880d681SAndroid Build Coastguard Worker.word f02(NONE) 15*9880d681SAndroid Build Coastguard Worker.word f03(none) 16*9880d681SAndroid Build Coastguard Worker@CHECK: 8 R_ARM_NONE f02 17*9880d681SAndroid Build Coastguard Worker@CHECK: c R_ARM_NONE f03 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Worker@ plt 20*9880d681SAndroid Build Coastguard Workerbl f04(PLT) 21*9880d681SAndroid Build Coastguard Workerbl f05(plt) 22*9880d681SAndroid Build Coastguard Worker@ARM: 10 R_ARM_CALL f04 23*9880d681SAndroid Build Coastguard Worker@ARM: 14 R_ARM_CALL f05 24*9880d681SAndroid Build Coastguard Worker@THUMB: 10 R_ARM_THM_CALL f04 25*9880d681SAndroid Build Coastguard Worker@THUMB: 14 R_ARM_THM_CALL f05 26*9880d681SAndroid Build Coastguard Worker 27*9880d681SAndroid Build Coastguard Worker@ got 28*9880d681SAndroid Build Coastguard Worker.word f06(GOT) 29*9880d681SAndroid Build Coastguard Worker.word f07(got) 30*9880d681SAndroid Build Coastguard Worker@CHECK: 18 R_ARM_GOT_BREL f06 31*9880d681SAndroid Build Coastguard Worker@CHECK: 1c R_ARM_GOT_BREL f07 32*9880d681SAndroid Build Coastguard Worker 33*9880d681SAndroid Build Coastguard Worker@ gotoff 34*9880d681SAndroid Build Coastguard Worker.word f08(GOTOFF) 35*9880d681SAndroid Build Coastguard Worker.word f09(gotoff) 36*9880d681SAndroid Build Coastguard Worker@CHECK: 20 R_ARM_GOTOFF32 f08 37*9880d681SAndroid Build Coastguard Worker@CHECK: 24 R_ARM_GOTOFF32 f09 38*9880d681SAndroid Build Coastguard Worker 39*9880d681SAndroid Build Coastguard Worker@ tpoff 40*9880d681SAndroid Build Coastguard Worker.word f10(TPOFF) 41*9880d681SAndroid Build Coastguard Worker.word f11(tpoff) 42*9880d681SAndroid Build Coastguard Worker@CHECK: 28 R_ARM_TLS_LE32 f10 43*9880d681SAndroid Build Coastguard Worker@CHECK: 2c R_ARM_TLS_LE32 f11 44*9880d681SAndroid Build Coastguard Worker 45*9880d681SAndroid Build Coastguard Worker@ tlsgd 46*9880d681SAndroid Build Coastguard Worker.word f12(TLSGD) 47*9880d681SAndroid Build Coastguard Worker.word f13(tlsgd) 48*9880d681SAndroid Build Coastguard Worker@CHECK: 30 R_ARM_TLS_GD32 f12 49*9880d681SAndroid Build Coastguard Worker@CHECK: 34 R_ARM_TLS_GD32 f13 50*9880d681SAndroid Build Coastguard Worker 51*9880d681SAndroid Build Coastguard Worker@ target1 52*9880d681SAndroid Build Coastguard Worker.word f14(TARGET1) 53*9880d681SAndroid Build Coastguard Worker.word f15(target1) 54*9880d681SAndroid Build Coastguard Worker@CHECK: 38 R_ARM_TARGET1 f14 55*9880d681SAndroid Build Coastguard Worker@CHECK: 3c R_ARM_TARGET1 f15 56*9880d681SAndroid Build Coastguard Worker 57*9880d681SAndroid Build Coastguard Worker@ target2 58*9880d681SAndroid Build Coastguard Worker.word f16(TARGET2) 59*9880d681SAndroid Build Coastguard Worker.word f17(target2) 60*9880d681SAndroid Build Coastguard Worker@CHECK: 40 R_ARM_TARGET2 f16 61*9880d681SAndroid Build Coastguard Worker@CHECK: 44 R_ARM_TARGET2 f17 62*9880d681SAndroid Build Coastguard Worker 63*9880d681SAndroid Build Coastguard Worker@ prel31 64*9880d681SAndroid Build Coastguard Worker.word f18(PREL31) 65*9880d681SAndroid Build Coastguard Worker.word f19(prel31) 66*9880d681SAndroid Build Coastguard Worker@CHECK: 48 R_ARM_PREL31 f18 67*9880d681SAndroid Build Coastguard Worker@CHECK: 4c R_ARM_PREL31 f19 68*9880d681SAndroid Build Coastguard Worker 69*9880d681SAndroid Build Coastguard Worker@ tlsldo 70*9880d681SAndroid Build Coastguard Worker.word f20(TLSLDO) 71*9880d681SAndroid Build Coastguard Worker.word f21(tlsldo) 72*9880d681SAndroid Build Coastguard Worker@CHECK: 50 R_ARM_TLS_LDO32 f20 73*9880d681SAndroid Build Coastguard Worker@CHECK: 54 R_ARM_TLS_LDO32 f21 74*9880d681SAndroid Build Coastguard Worker 75*9880d681SAndroid Build Coastguard Worker@ tlscall 76*9880d681SAndroid Build Coastguard Worker.word f22(TLSCALL) 77*9880d681SAndroid Build Coastguard Worker.word f23(tlscall) 78*9880d681SAndroid Build Coastguard Worker@ CHECK: 58 R_ARM_TLS_CALL f22 79*9880d681SAndroid Build Coastguard Worker@ CHECK: 5c R_ARM_TLS_CALL f23 80*9880d681SAndroid Build Coastguard Worker 81*9880d681SAndroid Build Coastguard Worker@ tlsdesc 82*9880d681SAndroid Build Coastguard Worker.word f24(TLSDESC) 83*9880d681SAndroid Build Coastguard Worker.word f25(tlsdesc) 84*9880d681SAndroid Build Coastguard Worker@ CHECK: 60 R_ARM_TLS_GOTDESC f24 85*9880d681SAndroid Build Coastguard Worker@ CHECK: 64 R_ARM_TLS_GOTDESC f25 86*9880d681SAndroid Build Coastguard Worker 87*9880d681SAndroid Build Coastguard Worker@ prel31 (relative) 88*9880d681SAndroid Build Coastguard Worker.word f26(PREL31)-. 89*9880d681SAndroid Build Coastguard Worker.word f27(prel31)-. 90*9880d681SAndroid Build Coastguard Worker@CHECK: 68 R_ARM_PREL31 f26 91*9880d681SAndroid Build Coastguard Worker@CHECK: 6c R_ARM_PREL31 f27 92*9880d681SAndroid Build Coastguard Worker 93*9880d681SAndroid Build Coastguard Worker@ got_prel 94*9880d681SAndroid Build Coastguard Worker.word f28(GOT_PREL) + (. - .Lsym) 95*9880d681SAndroid Build Coastguard Worker ldr r3, =f29(GOT_PREL) 96*9880d681SAndroid Build Coastguard Worker@ CHECK: 70 R_ARM_GOT_PREL f28 97*9880d681SAndroid Build Coastguard Worker@ CHECK: 78 R_ARM_GOT_PREL f29 98