[all-commits] [llvm/llvm-project] b48bca: [PAC][lld] Do not emit AUTH relocs against undef w...

Daniil Kovalev via All-commits all-commits at lists.llvm.org
Tue Aug 4 05:37:22 PDT 2026


  Branch: refs/heads/users/kovdan01/lld-pauth-undef-weak
  Home:   https://github.com/llvm/llvm-project
  Commit: b48bca9225adb58e865c661a43fb1165b419f30e
      https://github.com/llvm/llvm-project/commit/b48bca9225adb58e865c661a43fb1165b419f30e
  Author: Daniil Kovalev <dkovalev at accesssoftek.com>
  Date:   2026-08-04 (Tue, 04 Aug 2026)

  Changed paths:
    M lld/ELF/Arch/AArch64.cpp
    M lld/ELF/Relocations.cpp
    M lld/ELF/SyntheticSections.cpp
    M lld/ELF/SyntheticSections.h
    A lld/test/ELF/aarch64-reloc-pauth-undef-weak-dso.s
    A lld/test/ELF/aarch64-reloc-pauth-undef-weak-pie.s
    A lld/test/ELF/aarch64-reloc-pauth-undef-weak.s
    M lld/test/ELF/aarch64-tlsdesc-pauth.s

  Log Message:
  -----------
  [PAC][lld] Do not emit AUTH relocs against undef weak non-preemptible symbols

Undefined weak non-preemptible symbols should be statically resolved
and not signed.

See the corresponding relaxation described in docs:
https://github.com/ARM-software/abi-aa/blob/6e0d6611ac977628af7b2444ff841e76931a3557/design-documents/pauthabi-tls.rst

Previously, a dynamic relocation against such symbols was emitted,
which is not a correct behavior.

See also: https://github.com/ARM-software/abi-aa/pull/391

Depends on: #198327

Resolves #173296


  Commit: 3b4fb49bcfbe196cf4266f4f69ee3aea7d876545
      https://github.com/llvm/llvm-project/commit/3b4fb49bcfbe196cf4266f4f69ee3aea7d876545
  Author: Daniil Kovalev <dkovalev at accesssoftek.com>
  Date:   2026-08-04 (Tue, 04 Aug 2026)

  Changed paths:
    M lld/ELF/Arch/AArch64.cpp
    M lld/test/ELF/aarch64-reloc-pauth-undef-weak-dso.s
    M lld/test/ELF/aarch64-reloc-pauth-undef-weak-pie.s
    M lld/test/ELF/aarch64-reloc-pauth-undef-weak.s
    M lld/test/ELF/aarch64-tlsdesc-pauth.s

  Log Message:
  -----------
  `.tlsdescauthcall` -> `.tlsauthdesccall` (per documentation)


Compare: https://github.com/llvm/llvm-project/compare/24a9427288a7...3b4fb49bcfbe

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