From 83af2281ccdf302a773e0a688fba1ed46598732d Mon Sep 17 00:00:00 2001 From: dsamersoff Date: Fri, 29 Apr 2011 21:13:00 +0400 Subject: [PATCH] 7019808: build fails on Fedora 14: SELinux run-time check: execution of stack in libjvm.so Summary: executable flag is set in the elf header of libjvm.so during build, instruct ld to don't do it. Reviewed-by: acorn, phh --- make/linux/makefiles/vm.make | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/make/linux/makefiles/vm.make b/make/linux/makefiles/vm.make index a987ec30a..83c51b1cc 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. -- GitLab