[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
Thu Feb 26 22:48:53 PST 2026


================
@@ -66,3 +66,15 @@ when output takes place to a sequential unit after
 executing a `BACKSPACE` or `REWIND` statement.
 Truncation of a stream-access unit is common to several other
 compilers, but it is not mentioned in the standard.
+
+## `FLANG_TRAMPOLINE_POOL_SIZE`
+
+Set `FLANG_TRAMPOLINE_POOL_SIZE` to an integer value to control the maximum
+number of runtime trampoline slots available when `-fruntime-trampoline` is
+enabled. Each slot is 32 bytes of executable code backed by a writable data
----------------
Saieiei wrote:

Good point — qualified as target-specific: "size varies by target; e.g. 32 bytes on x86-64 and AArch64".

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


More information about the flang-commits mailing list