Commit 31b1a5a1 authored by Raymond Toy's avatar Raymond Toy
Browse files

Add -z noexecstack to disable exec flag for the C stack.

parent 2d4d5a7f
......@@ -6,7 +6,8 @@ CPPFLAGS += -m32 -rdynamic -D__NO_CTYPE -D_GNU_SOURCE
UNDEFSYMPATTERN = -Xlinker -u -Xlinker &
ASSEM_SRC += linux-stubs.S
OS_SRC += Linux-os.c elf.c
OS_LINK_FLAGS = -m32 -rdynamic -Xlinker --export-dynamic -Xlinker -Map -Xlinker foo
OS_LIBS = -ldl
OS_LINK_FLAGS = -m32 -rdynamic -Xlinker --export-dynamic -Xlinker -Map -Xlinker foo
OS_LINK_FLAGS += -Wl,-z,noexecstack
EXEC_FINAL_OBJ = exec-final.o
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment