Updated Security (asciidoc)

This commit is contained in:
Federico Ceratto 2017-01-10 20:05:14 +00:00
parent 46c3a502a9
commit 19d5f3d7ac
1 changed files with 7 additions and 0 deletions

View File

@ -30,6 +30,13 @@ All the following options enabled together:
--passC:"-fPIE -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -O1 -fstack-protector-all" --passL:"-fPIE -pie -z relro -z now" --passC:"-fPIE -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -O1 -fstack-protector-all" --passL:"-fPIE -pie -z relro -z now"
---- ----
Same entries for nim.cfg:
[source,ini]
----
gcc.options.always = "-w -D_FORTIFY_SOURCE=2 -O1 -Wformat -Wformat-security -fPIE -fstack-protector-all"
gcc.options.linker = "-ldl -fPIE -pie -z relro -z now"
----
==== Stack protector ==== Stack protector
Terminate execution when the stack is being overwritten Terminate execution when the stack is being overwritten