[llvm] [llvm][MC][ARM][Assembly] Emit relocations for ADRs and big-endian targets (PR #73834)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 18 19:04:06 PST 2024


bd1976bris wrote:

> The example you have there is not PIE. There is a non-relative relocation in the .text segment (R_ARM_ABS32 is put the absolute address of the symbol into the .word) in the example. By default LLD will accept R_ARM_ABS32 in .data and .data.rel.ro but not .text (it will with -z notext)

@smithp35 thanks for the information on this. To update you, it seems that the problems with the ABS relocations began with https://github.sie.sony.com/SIE-Private/cpu-toolchain-ppr/commit/42e4967140e345923a43f809ba69be57200f46ae. Unfortunately, that was close enough to this change to be tested together on CI.

https://github.com/llvm/llvm-project/pull/73834


More information about the llvm-commits mailing list