mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-15 11:36:54 +02:00
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 <joseph.henry@zerotier.com>
This commit is contained in:
parent
e36127283c
commit
c6f07ee19f
1 changed files with 3 additions and 0 deletions
|
@ -357,6 +357,9 @@ endif
|
|||
override CFLAGS+=-fPIC -fPIE
|
||||
override CXXFLAGS+=-fPIC -fPIE
|
||||
|
||||
# Non-executable stack
|
||||
override ASFLAGS+=--noexecstack
|
||||
|
||||
.PHONY: all
|
||||
all: one
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue