Disable executable stacks on assembly objects

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

Fixes zerotier/ZeroTierOne#1179
This commit is contained in:
Kenny MacDermid 2023-07-25 19:35:20 -03:00
parent 12e64aa191
commit 3bc9f4bca1
No known key found for this signature in database
GPG key ID: 88B5D54B9ACB2F23

View file

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