[all-commits] [llvm/llvm-project] a59a8a: [compiler-rt][ARM] Add missing PACBTI support to a...

Victor Campos via All-commits all-commits at lists.llvm.org
Tue Jun 10 02:21:11 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a59a8ae1a9de8225a4b297f537cd73a80ca6f050
      https://github.com/llvm/llvm-project/commit/a59a8ae1a9de8225a4b297f537cd73a80ca6f050
  Author: Victor Campos <victor.campos at arm.com>
  Date:   2025-06-10 (Tue, 10 Jun 2025)

  Changed paths:
    M compiler-rt/lib/builtins/arm/aeabi_cdcmp.S
    M compiler-rt/lib/builtins/arm/aeabi_cfcmp.S
    M compiler-rt/lib/builtins/arm/aeabi_dcmp.S
    M compiler-rt/lib/builtins/arm/aeabi_fcmp.S
    M compiler-rt/lib/builtins/arm/aeabi_idivmod.S
    M compiler-rt/lib/builtins/arm/aeabi_ldivmod.S
    M compiler-rt/lib/builtins/arm/aeabi_memcpy.S
    M compiler-rt/lib/builtins/arm/aeabi_memmove.S
    M compiler-rt/lib/builtins/arm/aeabi_memset.S
    M compiler-rt/lib/builtins/arm/aeabi_uidivmod.S
    M compiler-rt/lib/builtins/arm/aeabi_uldivmod.S
    M compiler-rt/lib/builtins/assembly.h

  Log Message:
  -----------
  [compiler-rt][ARM] Add missing PACBTI support to assembly aeabi functions (#142400)

Some of the aeabi functions were missing PACBTI support. The lack of it
resulted in exceptions at runtime if the running environment had PAC
and/or BTI enabled.

This patch adds this support. This involves the addition of PACBTI
instructions, depending on whether each of these features is enabled,
plus the saving and restoring of the PAC code that resides in r12. Some
of the common code has been put in preprocessor macros to reduce
duplication, but not all, especially since some register saving and
restoring is very specific to each context.



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