Преглед изворни кода

Append noexecstack to linker flags instead of assembler flags

* Better compatibility with LLVM toolchain where clang -c doesn't
  support the flag, but the linker does. LLD already defaults to
  noexecstack, but adding it in the linker phase will avoid errors about
  unsupported options.

Signed-off-by: Alfred Wingate <[email protected]>
Alfred Wingate пре 1 година
родитељ
комит
e171384c19
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      make-linux.mk

+ 1 - 1
make-linux.mk

@@ -358,7 +358,7 @@ override CFLAGS+=-fPIC -fPIE
 override CXXFLAGS+=-fPIC -fPIE
 
 # Non-executable stack
-override ASFLAGS+=--noexecstack
+override LDFLAGS+=-Wl,-z,noexecstack
 
 .PHONY: all
 all:	one