[llvm-branch-commits] [lld] [PAC][lld] Do not emit AUTH relocs against undef weak non-preemptible symbols (PR #194636)

Peter Smith via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Aug 4 09:51:12 PDT 2026


================
@@ -0,0 +1,48 @@
+# REQUIRES: aarch64
+# RUN: llvm-mc -filetype=obj -triple=aarch64 -mattr=+pauth %s -o %t.o
+# RUN: ld.lld -shared %t.o -o %t
+# RUN: llvm-readobj -r %t | FileCheck %s --check-prefix=RELA
+# RUN: llvm-readelf -x.data %t | FileCheck %s --check-prefix=DATA
+# RUN: llvm-readelf -x.got  %t | FileCheck %s --check-prefix=GOT
+# RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s --check-prefix=DIS
+
+## Verify that R_AARCH64_AUTH_ABS64 against a weak undefined symbol is resolved
----------------
smithp35 wrote:

Can you make that `weak non-preemptible undefined symbol`? I think that's repeated in all the new tests.

Unless there's already a test, is it worth adding a preemptible undefined symbol to check that there is a dynamic relocation?

https://github.com/llvm/llvm-project/pull/194636


More information about the llvm-branch-commits mailing list