MC currently does not emit these relocation types, and lld does not handle them. Add FKF_Constant as a work-around of some ARM code after D72197. Eventually we probably should implement these relocation types. By Fangrui Song! Differential revision: https://reviews.llvm.org/D72892
14 lines
344 B
ArmAsm
14 lines
344 B
ArmAsm
# RUN: not --crash llvm-mc -triple thumbv7-windows -incremental-linker-compatible -filetype obj -o /dev/null 2>&1 %s \
|
|
# RUN: | FileCheck %s
|
|
|
|
.def invalid_relocation
|
|
.type 32
|
|
.scl 2
|
|
.endef
|
|
.global invalid_relocation
|
|
.thumb_func
|
|
adr r0, invalid_relocation+1
|
|
|
|
# CHECK: LLVM ERROR: unsupported relocation type: fixup_t2_adr_pcrel_12
|
|
|