diff --git a/java/openjdk6/files/patch-hotspot_make_bsd_makefiles_vm.make b/java/openjdk6/files/patch-hotspot_make_bsd_makefiles_vm.make new file mode 100644 index 000000000000..811281966c7d --- /dev/null +++ b/java/openjdk6/files/patch-hotspot_make_bsd_makefiles_vm.make @@ -0,0 +1,12 @@ +--- hotspot/make/bsd/makefiles/vm.make.orig 2016-12-30 04:31:06 UTC ++++ hotspot/make/bsd/makefiles/vm.make +@@ -119,6 +119,9 @@ LFLAGS += $(EXTRA_CFLAGS) + # Darwin is non-executable-stack by default + ifneq ($(OS_VENDOR), Darwin) + LFLAGS += -Xlinker -z -Xlinker noexecstack ++ifeq ($(Platform_arch_model), x86_32) ++LFLAGS += -Xlinker -z -Xlinker notext ++endif + endif + + LIBS += -lm -pthread