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

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Fri Feb 27 14:52:24 PST 2026


================
@@ -7588,6 +7567,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, [], [ClangOption], "Use W^X compliant runtime trampoline pool for internal procedures">,
----------------
klausler wrote:

The name `runtime-trampoline` isn't the best for users -- all trampolines are created *during* runtime.  Suggest `safe-trampoline` or `no-stack-trampoline`.

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


More information about the flang-commits mailing list