[all-commits] [llvm/llvm-project] 8acc3b: [lld][ELF] Support adrp+ldr GOT optimization for A...

Alexander Shaposhnikov via All-commits all-commits at lists.llvm.org
Sun Jan 9 21:22:07 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8acc3b4ab0c76b9c2a54182e31a02f90ebb96329
      https://github.com/llvm/llvm-project/commit/8acc3b4ab0c76b9c2a54182e31a02f90ebb96329
  Author: Alexander Shaposhnikov <ashaposhnikov at google.com>
  Date:   2022-01-10 (Mon, 10 Jan 2022)

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

  Log Message:
  -----------
  [lld][ELF] Support adrp+ldr GOT optimization for AArch64

This diff adds first bits to support relocation relaxations for AArch64
discussed on https://github.com/ARM-software/abi-aa/pull/106.
In particular, the case of

adrp x0, :got: symbol
ldr x0, [x0, :got_lo12: symbol]

is handled.

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D112063




More information about the All-commits mailing list