[PATCH] D81184: [lld][ELF][AArch64] Handle R_AARCH64_PLT32 relocation

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 12 06:26:21 PDT 2020


psmith added a comment.

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.


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