RFR(M): 8187045: [linux] Not all libraries in the VM are linked with -z,noexecstack
Magnus Ihse Bursie
magnus.ihse.bursie at oracle.com
Mon Sep 4 08:42:27 UTC 2017
Since this is mostly a build change, it need to be reviewed on build-dev.
However, it looks good to me from a build perspective. I have not
reviewed the hotspot test files.
On 2017-09-01 15:05, Lindenmaier, Goetz wrote:
> I found that not all libraries are linked with -z,noexecstack.
> This lead to errors with our linuxppc64 build. The linker omitted
> the flag altogether, which is interpreted as a lib with execstack.
> This change contains a small test that scans all libraries in the tested VM
> to have the noexecstack flag set. It utilizes the elf parser in the VM for this.
> Further -z,noexecstack is now passed to all libraries.
> Please review this change. I please need a sponsor.
> Best regards,
More information about the hotspot-runtime-dev