[Jamvm-general] Executable stack markings on libjvm.so
Brought to you by:
rlougher
From: Andrew H. <gnu...@re...> - 2015-07-08 20:16:58
|
Hi, Because of the use of assembly code for callNative.S, gcc marks the resulting object files as having executable stack. This leads to libjvm.so being marked as such, and problems ensue when using the library on hardened kernels. IcedTea has been working around this for a while by passing --noexecstack to the linker without problem. The attached patch fixes the issue at its cause, adding the appropriate markings [0] in the assembly code. Please apply this patch to JamVM. [0] https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart Thanks, -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) PGP Key: ed25519/35964222 (hkp://keys.gnupg.net) Fingerprint = 5132 579D D154 0ED2 3E04 C5A0 CFDA 0F9B 3596 4222 PGP Key: rsa4096/248BDC07 (hkp://keys.gnupg.net) Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07 |