[all-commits] [llvm/llvm-project] b064bc: ELF: Do not relax ADRP/LDR -> ADRP/ADD for absolut...

pcc via All-commits all-commits at lists.llvm.org
Fri Jun 24 08:48:09 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b064bc18c30c334d3111c3db45b8d38ec35ad045
  Author: Peter Collingbourne <peter at pcc.me.uk>
  Date:   2022-06-24 (Fri, 24 Jun 2022)

  Changed paths:
    M lld/ELF/Arch/AArch64.cpp
    M lld/test/ELF/aarch64-adrp-ldr-got-symbols.s

  Log Message:
  ELF: Do not relax ADRP/LDR -> ADRP/ADD for absolute symbols in PIC.

GOT references to absolute symbols can't be relaxed to use ADRP/ADD in
position-independent code because these instructions produce a relative

Differential Revision: https://reviews.llvm.org/D128492

More information about the All-commits mailing list