summaryrefslogtreecommitdiffhomepage
path: root/project/extras.mk
diff options
context:
space:
mode:
Diffstat (limited to 'project/extras.mk')
-rw-r--r--project/extras.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/project/extras.mk b/project/extras.mk
index 1fb17fb..112b8b0 100644
--- a/project/extras.mk
+++ b/project/extras.mk
@@ -25,6 +25,12 @@ CFLAGS_COMMON += -fno-asynchronous-unwind-tables
CFLAGS_COMMON += -frounding-math
CFLAGS_COMMON += -fexcess-precision=standard
+# assembler cflags
+ifeq ($(CC_BINFMT),ELF)
+CFLAGS_ASM += -Wa,--noexecstack
+CFLAGS_CONFIG += $(CFLAGS_ASM)
+endif
+
# memory modules
libc_mem_modules = \
./src/string/memcpy.c \