[PATCH] D72892: [MC][ARM] Resolve some pcrel fixups at assembly time
Peter Smith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 01:37:35 PST 2020
peter.smith added a comment.
As I understand it these relocation types are not often implemented is due to their short range. The Arm and Thumb2 ldr (literal) range (search for A8.8.64 in https://static.docs.arm.com/ddi0406/c/DDI0406C_C_arm_architecture_reference_manual.pdf) is:
Encoding T2 or A1 Any value in the range -4095 to 4095.
Outside of carefully crafted section orders, the chances of the relocation being in range if it went outside of a section boundary is very low. If the relocation is within a section boundary then the assembler can resolve it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72892/new/
https://reviews.llvm.org/D72892
More information about the llvm-commits
mailing list