diff --git a/make/linux/makefiles/vm.make b/make/linux/makefiles/vm.make index a987ec30aea6e543b83fc6bdfaab1df0b060a9ea..83c51b1ccff3d117a5355e2eb3efb9ddcaa76c63 100644 --- a/make/linux/makefiles/vm.make +++ b/make/linux/makefiles/vm.make @@ -102,6 +102,10 @@ CFLAGS += $(CFLAGS/NOEX) CFLAGS += $(EXTRA_CFLAGS) LFLAGS += $(EXTRA_CFLAGS) +# Don't set excutable bit on stack segment +# the same could be done by separate execstack command +LFLAGS += -Xlinker -z -Xlinker noexecstack + LIBS += -lm -ldl -lpthread # By default, link the *.o into the library, not the executable.