[clang] [llvm] [AArch64] Stack probing for function prologues (PR #66524)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 21 14:53:54 PST 2023


================
@@ -1076,6 +1076,16 @@ void CodeGenModule::Release() {
                                 "sign-return-address-with-bkey", 1);
   }
 
+  if (Arch == llvm::Triple::aarch64 || Arch == llvm::Triple::aarch64_be) {
+    auto *InlineAsm = llvm::MDString::get(TheModule.getContext(), "inline-asm");
+    if (CodeGenOpts.StackClashProtector)
+      getModule().addModuleFlag(llvm::Module::Override, "probe-stack",
+                                InlineAsm);
----------------
efriedma-quic wrote:

Any reply here?

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


More information about the cfe-commits mailing list