38 lines · plain
1# RUN: llvm-mc -triple=armv7-linux-gnueabi %s | FileCheck %s --check-prefix=ASM2# RUN: llvm-mc -filetype=obj -triple=armv7-linux-gnueabi --fdpic %s | llvm-readelf -h -r -s - | FileCheck %s --implicit-check-not=TLS3 4# RUN: not llvm-mc -filetype=obj -triple=armv7-linux-gnueabi %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR5 6# ASM: .long f(FUNCDESC)7# ASM-NEXT: .long f(GOTFUNCDESC)8# ASM-NEXT: .long f(GOTOFFFUNCDESC)9 10# CHECK: OS/ABI: ARM FDPIC11# CHECK: Machine: ARM12# CHECK: Flags: 0x500000013 14# CHECK: R_ARM_FUNCDESC 00000000 f15# CHECK-NEXT: R_ARM_GOTFUNCDESC 00000000 f16# CHECK-NEXT: R_ARM_GOTOFFFUNCDESC 00000000 f17# CHECK-NEXT: R_ARM_TLS_GD32_FDPIC 00000000 tls018# CHECK-NEXT: R_ARM_TLS_LDM32_FDPIC 00000000 tls119# CHECK-NEXT: R_ARM_TLS_IE32_FDPIC 00000000 tls220 21# CHECK: TLS GLOBAL DEFAULT UND tls022# CHECK: TLS GLOBAL DEFAULT UND tls123# CHECK: TLS GLOBAL DEFAULT UND tls224 25.data26# ERR: [[#@LINE+1]]:7: error: relocation R_ARM_FUNCDESC only supported in FDPIC mode27.long f(FUNCDESC)28# ERR: [[#@LINE+1]]:7: error: relocation R_ARM_GOTFUNCDESC only supported in FDPIC mode29.long f(GOTFUNCDESC)30# ERR: [[#@LINE+1]]:7: error: relocation R_ARM_GOTOFFFUNCDESC only supported in FDPIC mode31.long f(GOTOFFFUNCDESC)32# ERR: [[#@LINE+1]]:7: error: relocation R_ARM_TLS_GD32_FDPIC only supported in FDPIC mode33.long tls0(tlsgd_fdpic)34# ERR: [[#@LINE+1]]:7: error: relocation R_ARM_TLS_LDM32_FDPIC only supported in FDPIC mode35.long tls1(tlsldm_fdpic)36# ERR: [[#@LINE+1]]:7: error: relocation R_ARM_TLS_IE32_FDPIC only supported in FDPIC mode37.long tls2(gottpoff_fdpic)38