Fri, 29 Apr 2011 21:13:00 +0400
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 | file | annotate | diff | comparison | revisions |
1.1 --- a/make/linux/makefiles/vm.make Thu Apr 28 08:24:46 2011 -0700 1.2 +++ b/make/linux/makefiles/vm.make Fri Apr 29 21:13:00 2011 +0400 1.3 @@ -102,6 +102,10 @@ 1.4 CFLAGS += $(EXTRA_CFLAGS) 1.5 LFLAGS += $(EXTRA_CFLAGS) 1.6 1.7 +# Don't set excutable bit on stack segment 1.8 +# the same could be done by separate execstack command 1.9 +LFLAGS += -Xlinker -z -Xlinker noexecstack 1.10 + 1.11 LIBS += -lm -ldl -lpthread 1.12 1.13 # By default, link the *.o into the library, not the executable.