| 1 | Make the stack non-executable
|
| 2 |
|
| 3 | Otherwise, 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 |
|
| 8 | diff --git a/include/scc/bits/scc/sys-scc.h b/include/scc/bits/scc/sys-scc.h
|
| 9 | index 9d6ae86b..85a37ecd 100644
|
| 10 | |
| 11 | |
| 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",
|