[llvm] [BOLT][AArch64] Handle OpNegateRAState to enable optimizing binaries with pac-ret hardening (PR #120064)
Paschalis Mpeis via llvm-commits
llvm-commits at lists.llvm.org
Tue May 6 11:49:56 PDT 2025
================
@@ -385,9 +395,14 @@ Error BinaryFunctionPassManager::runAllPasses(BinaryContext &BC) {
Manager.registerPass(std::make_unique<ValidateMemRefs>(NeverPrint));
- if (opts::Instrument)
+ if (opts::Instrument) {
+ if (opts::AllowPacret) {
+ BC.errs() << "BOLT-ERROR: Instrumenting binaries with pac-ret hardening "
+ "is not supported.\n";
----------------
paschalis-mpeis wrote:
Can you add a third (minimal) lit test to cover this case?
https://github.com/llvm/llvm-project/pull/120064
More information about the llvm-commits
mailing list