Updated Security (asciidoc)
This commit is contained in:
parent
46c3a502a9
commit
19d5f3d7ac
|
@ -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"
|
||||
----
|
||||
|
||||
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
|
||||
Terminate execution when the stack is being overwritten
|
||||
|
|
Loading…
Reference in New Issue