From 0150eb8293a7c88f493a4f4b145dacf173aa8275 Mon Sep 17 00:00:00 2001 From: Erik Zscheile Date: Thu, 26 Nov 2020 19:32:12 +0100 Subject: Fix #1524: 'ghdl build produces an executable with RWX sections' --- src/grt/config/chkstk.S | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/grt/config/chkstk.S b/src/grt/config/chkstk.S index 7d499cbda..29debd44f 100644 --- a/src/grt/config/chkstk.S +++ b/src/grt/config/chkstk.S @@ -50,3 +50,7 @@ __chkstk: #endif .ident "Written by T.Gingold" + +#if defined(__linux__) && defined(__ELF__) + .section .note.GNU-stack,"",%progbits +#endif -- cgit v1.2.3