Linux + Clang + execstack

Martin Buchholz martinrb at
Thu Sep 13 20:49:51 UTC 2018

On Thu, Sep 13, 2018 at 12:48 PM, Magnus Ihse Bursie
<magnus.ihse.bursie at> wrote:

> I'm not entirely happy, but it'll have to do. The problem here is that the
> underlying structure of the flags handling is still not good so this
> probably cannot be expressed better than this.

We're not entirely happy either.

A much higher interface might look like

TRY_ADD_LINKER_FLAGS -z noexecstack
which would add -Wl,-z,noexecstack to LDFLAGS when appropriate
.... hmmm ...
I only just noticed that both gcc and clang accept simply
$CC -z noexecstack
(it's even documented!)
Should we switch to that instead?

> Do you have a JBS issue?

I have gcc and clang should
use the same ld flags
but the proposed patch only addresses part of that.  I could create a
sub-task (but I've never done that before) or a new bug or change the
description of this bug.  What do you think?

More information about the hotspot-dev mailing list