projects/guix·blob javascript-team · refs

19 lines · 674 B

1Make the stack non-executable
2
3Otherwise, binutil's ld will emit the following warning on each scc(1) invocation:
4
5 ld: warning: _sys_brk.6l: missing .note.GNU-stack section implies executable stack
6 ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
7
8diff --git a/include/scc/bits/scc/sys-scc.h b/include/scc/bits/scc/sys-scc.h
9index 9d6ae86b..85a37ecd 100644
10--- a/include/scc/bits/scc/sys-scc.h
11+++ b/include/scc/bits/scc/sys-scc.h
12@@ -13,6 +13,7 @@ char *sysincludes[] = {
13 /* configure below your system linker command line */
14 char *ldcmd[] = {
15 "-static",
16+ "-z","noexecstack",
17 "-z","nodefaultlib",
18 %NOPIE%
19 "-o","%o",