aboutsummaryrefslogtreecommitdiffstats
path: root/src/grt
diff options
context:
space:
mode:
authorErik Zscheile <zseri.devel@ytrizja.de>2020-11-26 19:32:12 +0100
committertgingold <tgingold@users.noreply.github.com>2020-11-27 06:06:59 +0100
commit0150eb8293a7c88f493a4f4b145dacf173aa8275 (patch)
tree1c135de250b0e0fc80b49d187f17bdd275569355 /src/grt
parent7ed5f245b145bdbc98da183236100c2e3a0163a9 (diff)
downloadghdl-0150eb8293a7c88f493a4f4b145dacf173aa8275.tar.gz
ghdl-0150eb8293a7c88f493a4f4b145dacf173aa8275.tar.bz2
ghdl-0150eb8293a7c88f493a4f4b145dacf173aa8275.zip
Fix #1524: 'ghdl build produces an executable with RWX sections'
Diffstat (limited to 'src/grt')
-rw-r--r--src/grt/config/chkstk.S4
1 files changed, 4 insertions, 0 deletions
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