diff -urNp ghc-9.2.8-orig/rts/StgCRunAsm.S ghc-9.2.8-dwok/rts/StgCRunAsm.S --- ghc-9.2.8-orig/rts/StgCRunAsm.S 2023-05-26 01:03:00.000000000 +0200 +++ ghc-9.2.8-dwok/rts/StgCRunAsm.S 2023-12-27 09:39:41.747353995 +0100 @@ -376,6 +376,11 @@ StgReturn: .size StgReturn, .-StgReturn .section .note.GNU-stack,"",@progbits +#else +/* mark stack as nonexecutable */ +#if defined(__linux__) && defined(__ELF__) + .section .note.GNU-stack,"",@progbits +#endif #endif #endif /* !USE_MINIINTERPRETER */