[lld] [PAC][lld] Do not emit AUTH relocs against undef weak non-preemptible symbols (PR #194636)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 21 21:49:00 PDT 2026
================
@@ -212,6 +214,19 @@ void AArch64::scanSectionImpl(InputSectionBase &sec, Relocs<RelTy> rels,
// Relocation types that only need a RelExpr set `expr` and break out of
// the switch to reach rs.process(). Types that need special handling
// (fast-path helpers, TLS) call a handler and use `continue`.
+
+ auto handleTlsDescAuth = [&sym, &sec, type, offset,
+ addend](RelExpr tlsdescExpr) {
+ if (sym.isUndefined() && !sym.isPreemptible) {
+ // Resolves statically to null. Handle in
----------------
MaskRay wrote:
"// Resolves to addend."
https://github.com/llvm/llvm-project/pull/194636
More information about the llvm-commits
mailing list