[clang] [llvm] [PAC][ELF][AArch64] Support signed personality function pointer (PR #113148)
Daniil Kovalev via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 4 05:51:32 PST 2024
================
@@ -28,6 +29,21 @@ void AArch64_ELFTargetObjectFile::Initialize(MCContext &Ctx,
SupportDebugThreadLocalLocation = false;
}
+void AArch64_ELFTargetObjectFile::emitPersonalityValueImpl(
+ MCStreamer &Streamer, const DataLayout &DL, const MCSymbol *Sym,
+ const MachineModuleInfo *MMI) const {
+ if (!MMI->getObjFileInfo<MachineModuleInfoELF>().hasSignedPersonality()) {
----------------
kovdan01 wrote:
> We should add a subclass of MachineModuleInfoELF similar to `AMDGPUMachineModuleInfo`, then move `HasSignedpersonality` there. Here you can use a static_cast.
Thanks for suggestion, please let me know if b4ca8b141b3df8737f0f0d6f64f083fefb403735 resolves your comment
https://github.com/llvm/llvm-project/pull/113148
More information about the cfe-commits
mailing list