changeset 2769:885a6e1730a8

PR2171: JamVM builds with executable stack, causing failures on SELinux & PaX kernels 2011-08-15 Pavel Tisnovsky <ptisnovs@redhat.com> PR2171: JamVM builds with executable stack, causing failures on SELinux & PaX kernels * Makefile.am: (jamvm): Added LDFLAGS for JamVM to fix the SELinux executable flag issue.
author Andrew John Hughes <gnu_andrew@member.fsf.org>
date Thu, 22 Jan 2015 00:51:01 +0000
parents 17332a8545d8
children 45ac6cd7aae2
files ChangeLog Makefile.am NEWS
diffstat 3 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jan 22 00:19:21 2015 +0000
+++ b/ChangeLog	Thu Jan 22 00:51:01 2015 +0000
@@ -1,3 +1,11 @@
+2011-08-15  Pavel Tisnovsky  <ptisnovs@redhat.com>
+
+	PR2171: JamVM builds with executable stack,
+	causing failures on SELinux & PaX kernels
+	* Makefile.am:
+	(jamvm): Added LDFLAGS for JamVM
+	to fix the SELinux executable flag issue.
+
 2015-01-07  Andrew John Hughes  <gnu.andrew@member.fsf.org>
 
 	PR2050: JamVM lacks JVM_FindClassFromCaller introduced
--- a/Makefile.am	Thu Jan 22 00:19:21 2015 +0000
+++ b/Makefile.am	Thu Jan 22 00:51:01 2015 +0000
@@ -2147,6 +2147,7 @@
 stamps/jamvm.stamp: $(OPENJDK_TREE) stamps/rt.stamp
 if BUILD_JAMVM
 	cd jamvm/jamvm && \
+	LDFLAGS="-Xlinker -z -Xlinker noexecstack" \
 	./autogen.sh --with-java-runtime-library=openjdk7 \
 	  --prefix=$(abs_top_builddir)/jamvm/install ; \
 	$(MAKE) ; \
--- a/NEWS	Thu Jan 22 00:19:21 2015 +0000
+++ b/NEWS	Thu Jan 22 00:51:01 2015 +0000
@@ -112,6 +112,7 @@
   - PR2161: RHEL 6 has a version of GIO which meets the version criteria, but has no g_settings_*
 * JamVM
   - PR2050: JamVM lacks JVM_FindClassFromCaller introduced by security patch in 2.5.3
+  - PR2171: JamVM builds with executable stack, causing failures on SELinux & PaX kernels
 
 New in release 2.5.3 (2014-10-14):