Home | History | Annotate | Download | only in ARM
      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
      3 
      4 @ CHECK-LABEL: RELOCATION RECORDS FOR [.rel.text]
      5 .Lsym:
      6 
      7 @ empty
      8 .word f00
      9 .word f01
     10 @CHECK: 0 R_ARM_ABS32 f00
     11 @CHECK: 4 R_ARM_ABS32 f01
     12 
     13 @ none
     14 .word f02(NONE)
     15 .word f03(none)
     16 @CHECK: 8 R_ARM_NONE f02
     17 @CHECK: c R_ARM_NONE f03
     18 
     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
     26 
     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
     32 
     33 @ gotoff
     34 .word f08(GOTOFF)
     35 .word f09(gotoff)
     36 @CHECK: 20 R_ARM_GOTOFF32 f08
     37 @CHECK: 24 R_ARM_GOTOFF32 f09
     38 
     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
     44 
     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
     50 
     51 @ target1
     52 .word f14(TARGET1)
     53 .word f15(target1)
     54 @CHECK: 38 R_ARM_TARGET1 f14
     55 @CHECK: 3c R_ARM_TARGET1 f15
     56 
     57 @ target2
     58 .word f16(TARGET2)
     59 .word f17(target2)
     60 @CHECK: 40 R_ARM_TARGET2 f16
     61 @CHECK: 44 R_ARM_TARGET2 f17
     62 
     63 @ prel31
     64 .word f18(PREL31)
     65 .word f19(prel31)
     66 @CHECK: 48 R_ARM_PREL31 f18
     67 @CHECK: 4c R_ARM_PREL31 f19
     68 
     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
     74 
     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
     80 
     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
     86 
     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
     92 
     93 @ got_prel
     94 .word	f28(GOT_PREL) + (. - .Lsym)
     95 	ldr r3, =f29(GOT_PREL)
     96 @ CHECK: 70 R_ARM_GOT_PREL f28
     97 @ CHECK: 78 R_ARM_GOT_PREL f29
     98