[PATCH] D81184: [lld][ELF][AArch64] Handle R_AARCH64_PLT32 relocation
Leonard Chan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 22 15:03:33 PDT 2020
leonardchan added a comment.
In D81184#2089657 <https://reviews.llvm.org/D81184#2089657>, @psmith wrote:
> Looking good so far. Would be good to add a range extension thunk test case. For example:
>
> .section .text.1, "ax", %progbits
> .global _start
> .type _start, %function
> _start: .word callee at PLT - .
>
> .section .text.2, "ax", %progbits
> .global callee
> .type callee, %function
> callee: ret
>
>
> Using a linker script to get a > 4gb gap. The AT is there to stop a multi gigabyte file being written.
>
> SECTIONS {
> .text.1 0x10000 : { *(.text.1) }
> .text.2 0x200000000 : AT(0x20000) { *(.text.2) }
> }
>
>
> The .word should be an offset to the range extension thunk instead of the target.
Thanks for the example. Added and rebased.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81184/new/
https://reviews.llvm.org/D81184
More information about the llvm-commits
mailing list