2
0
Эх сурвалжийг харах

Disable executable stacks on assembly objects (#2071)

Add `--noexecstack` to the assembler flags so the resulting binary
will link with a non-executable stack.

Fixes zerotier/ZeroTierOne#1179

Co-authored-by: Joseph Henry <[email protected]>
Kenny MacDermid 2 жил өмнө
parent
commit
c6f07ee19f
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      make-linux.mk

+ 3 - 0
make-linux.mk

@@ -357,6 +357,9 @@ endif
 override CFLAGS+=-fPIC -fPIE
 override CXXFLAGS+=-fPIC -fPIE
 
+# Non-executable stack
+override ASFLAGS+=--noexecstack
+
 .PHONY: all
 all:	one