diff -r 0d8fd6bb915f -r 934578b959f0 components/gcc5/Makefile --- a/components/gcc5/Makefile Thu Nov 03 22:18:09 2016 -0700 +++ b/components/gcc5/Makefile Fri Nov 04 05:32:50 2016 -0700 @@ -68,6 +68,15 @@ # /usr/lib/ld/map.noexbss destroys SPARC LD_MAP_NOEXBSS.sparc= +# Mapfiles map.noexdata and map.noexbss mark the data + bss and bss +# segments non executable on x86 and SPARC respectively. The protection +# extends to the heap segment, if the heap is brk based, as is the case +# with gcc. Since the introduction of NXHEAP, this is controlled +# separately by the NXHEAP extension itself. Whether the heap should be +# executable or not should be reevaluated. For now, try to avoid +# "destruction" as hinted above. +NXHEAP_MODE = $(NXHEAP_DISABLE) + # for some reason the fixincludes target fails with bash on Solaris. CONFIG_SHELL = /bin/sh MAKESHELL = /bin/sh