[all-commits] [llvm/llvm-project] d0cdc5: [LLD][ELF][AArch64] Add AArch64 short range thunk ...

Peter Smith via All-commits all-commits at lists.llvm.org
Mon Apr 24 05:49:40 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d0cdc5ddd75d6e9005f35ce199ee8fe41b4ae509
      https://github.com/llvm/llvm-project/commit/d0cdc5ddd75d6e9005f35ce199ee8fe41b4ae509
  Author: Peter Smith <peter.smith at arm.com>
  Date:   2023-04-24 (Mon, 24 Apr 2023)

  Changed paths:
    M lld/ELF/Thunks.cpp
    M lld/test/ELF/aarch64-cortex-a53-843419-thunk.s
    A lld/test/ELF/aarch64-long-thunk-converge.s
    M lld/test/ELF/aarch64-thunk-reuse2.s
    M lld/test/ELF/aarch64-thunk-script.s
    M lld/test/ELF/aarch64-thunk-section-location.s

  Log Message:
  -----------
  [LLD][ELF][AArch64] Add AArch64 short range thunk support

The AArch64 branch immediate instruction has a 128MiB range. This
makes it suitable for use a short range thunk in the same way as
short thunks are implemented in Arm and PPC. This patch adds
support for short range thunks to AArch64.

Adding short range thunk support should mean that OutputSections
can grow to nearly 256 MiB in size without needing long-range
indirect branches.

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




More information about the All-commits mailing list