[flang-commits] [clang] [flang] [llvm] [flang] Add runtime trampoline pool for W^X compliance (PR #183108)

Sairudra More via flang-commits flang-commits at lists.llvm.org
Fri Feb 27 08:44:23 PST 2026


================
@@ -7588,6 +7588,11 @@ defm stack_arrays : BoolOptionWithoutMarshalling<"f", "stack-arrays",
   PosFlag<SetTrue, [], [ClangOption], "Attempt to allocate array temporaries on the stack, no matter their size">,
   NegFlag<SetFalse, [], [ClangOption], "Allocate array temporaries on the heap (default)">>;
 
+defm runtime_trampoline : BoolOptionWithoutMarshalling<"f",
+  "runtime-trampoline",
+  PosFlag<SetTrue, [], [FlangOption], "Use W^X compliant runtime trampoline pool for internal procedures">,
+  NegFlag<SetFalse, [], [FlangOption], "Use stack-based trampolines for internal procedures (default)">>;
----------------
Saieiei wrote:

The NegFlag text in the latest [push](https://github.com/llvm/llvm-project/commit/72aaac357f1dbed87729d0c2929f22e745d6bd1f) already reads: "Use stack-based trampolines for internal procedures (default, may require executable stack)". Thanks for the suggestion!

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


More information about the flang-commits mailing list