[llvm] [PAC][ELF] Place AUTH constants in .data.rel.ro for position dependent code (PR #150418)
Daniil Kovalev via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 14 13:26:46 PST 2026
================
@@ -226,6 +227,22 @@ void TargetLoweringObjectFile::emitPseudoProbeDescMetadata(
}
}
+static bool needsPtrAuthRelocation(const Constant *C,
+ const TargetLoweringObjectFile *TLOF) {
+ if (const auto *CPA = dyn_cast<ConstantPtrAuth>(C))
+ if (!TLOF->canEmitConstantPtrAuthAsIRelative(CPA))
----------------
kovdan01 wrote:
> Ah, that's a bug in the test that I didn't notice when I wrote it, it should be using .data.rel.ro.
@pcc Thanks! I've deleted the special behavior for irelative and adjusted the test correspondingly
https://github.com/llvm/llvm-project/pull/150418
More information about the llvm-commits
mailing list