[PATCH] Set GNU stack marking for non-executable stack on Linux
Diego 'Flameeyes' Pettenò
flameeyes at gmail.com
Thu May 10 13:20:17 PDT 2007
The attached patch adds the GNU stack markings so that the stack is not
marked as RWX (both writable and executable). This is actually a minor
issues as with an enforced PaX (NX), Java will still not work because
of the JIT compiler, but at least it will remove one issue present
after building OpenJDK.
I'm not sure how the released binaries don't have the stacks marked as
executable, I suppose something might be mangling them afterward, but
this should cover the issue from the start.
The optimal way to handle this would have been to have it conditional
to Linux and ELF target, but that would have required to have
pre-processed sources (.S, rather than .s), and the two source files
are only for Linux (and thus only for ELF) anyway.
It also requires GNU as, but I think that is true already.
--
Diego "Flameeyes" Pettenò
http://farragut.flameeyes.is-a-geek.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openjdk-execstac.patch
Type: text/x-patch
Size: 760 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/hotspot-dev/attachments/20070510/fee1d29d/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/hotspot-dev/attachments/20070510/fee1d29d/attachment-0001.bin
More information about the hotspot-dev
mailing list