[erlang-patches] Remove executable stacks (HiPE/amd64)
Davide Pesavento
davidepesa@REDACTED
Thu Jan 29 16:43:18 CET 2009
On Thu, Jan 29, 2009 at 11:11, Mikael Pettersson <mikpe@REDACTED> wrote:
> Davide Pesavento writes:
> > Hi,
> > the attached patch fixes executable stacks in HiPE asm code for amd64.
> > I guess a similar patch can easily be applied to the other
> > architectures.
> >
> > References:
> > [1] https://bugs.gentoo.org/show_bug.cgi?id=249328
> > [2] http://www.erlang.org/pipermail/erlang-bugs/2008-December/001125.html
> > [3] http://www.gentoo.org/proj/en/hardened/gnu-stack.xml
>
> Thanks, this patch is what I ([2] above) suspected was needed.
>
> Note that HiPE never has used executable stacks, all this does is
> annotate some assembly file modules so that the build tools don't
> mark them as needing executable stack.
Indeed. By default gcc does not add GNU_STACK markings to .S files, so
they must be added manually to avoid an exec stack when the code does
not require it.
>
> This will be included in the R13B release, extended to cover all
> architectures not just amd64.
>
> /Mikael
>
Thanks,
Davide
More information about the erlang-patches
mailing list