[PATCH] D114172: [ARM] implement support for ALU/LDR PC-relative group relocations

Ard Biesheuvel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 23 05:00:26 PST 2021


ardb updated this revision to Diff 389178.
ardb added a comment.

For completeness, add support for R_ARM_LDRS_PC_Gn relocations as well. These are not as useful, given the small range of the unscaled addend, resulting in a guaranteed range of the entire group of only -/+ 16 MiB (24 bits).

Note that R_ARM_LDC_PC_Gn are still not supported, but these are even more obscure and so rarely used that I doubt whether anyone cares.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D114172/new/

https://reviews.llvm.org/D114172

Files:
  lld/ELF/Arch/ARM.cpp
  lld/test/ELF/arm-adr-err-long.s
  lld/test/ELF/arm-adr-err.s
  lld/test/ELF/arm-adr-long.s
  lld/test/ELF/arm-adr.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114172.389178.patch
Type: text/x-patch
Size: 17218 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211123/7ac6c3ec/attachment.bin>


More information about the llvm-commits mailing list