Browse Source

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>
pull/4/head
Kenny MacDermid 3 years ago committed by GitHub
parent
commit
c6f07ee19f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      make-linux.mk

3
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

Loading…
Cancel
Save