[all-commits] [llvm/llvm-project] 254c13: [BOLT][AArch64] Patch functions targeted by option...

Maksim Panchenko via All-commits all-commits at lists.llvm.org
Thu May 8 10:54:08 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 254c13d872ea378f9e5569060e24c134d37a0ecb
      https://github.com/llvm/llvm-project/commit/254c13d872ea378f9e5569060e24c134d37a0ecb
  Author: Maksim Panchenko <maks at fb.com>
  Date:   2025-05-08 (Thu, 08 May 2025)

  Changed paths:
    M bolt/include/bolt/Core/BinaryFunction.h
    M bolt/include/bolt/Utils/CommandLineOpts.h
    M bolt/lib/Core/BinaryFunction.cpp
    M bolt/lib/Core/BinarySection.cpp
    M bolt/lib/Passes/LongJmp.cpp
    M bolt/lib/Passes/PatchEntries.cpp
    M bolt/lib/Utils/CommandLineOpts.cpp
    M bolt/test/AArch64/lite-mode.s
    M bolt/unittests/Core/BinaryContext.cpp

  Log Message:
  -----------
  [BOLT][AArch64] Patch functions targeted by optional relocs (#138750)

On AArch64, we create optional/weak relocations that may not be
processed due to the relocated value overflow. When the overflow
happens, we used to enforce patching for all functions in the binary via
--force-patch option. This PR relaxes the requirement, and enforces
patching only for functions that are target of optional relocations.
Moreover, if the compact code model is used, the relocation overflow is
guaranteed not to happen and the patching will be skipped.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list