[pypy-dev] Executable stack of pypy-c
Amaury Forgeot d'Arc
amauryfa at gmail.com
Fri May 13 19:52:08 CEST 2011
Hi,
2011/5/13 Ilya Osadchiy <osadchiy.ilya at gmail.com>
>
> Hello.
> When translating pypy 1.5 under Gentoo linux I get binary with executable permission for the stack (so that execute prevention will not be enabled for it). Then if I make a gentoo package for I get annoying notice about it during installation.
> After some inspection I've found that the problem comes from gcmaptable.s which doesn't have the line '.section .note.GNU-stack,"", at progbits'.
> (I see that gcmaptable.s is generated "manually" and not by gcc, perhaps that's the reason).
>
> 1. Is the executable stack really needed?
> 2. If it's not needed, can we add the line '.section .note.GNU-stack,"", at progbits' to the end of gcmaptable.s?
According to http://www.gentoo.org/proj/en/hardened/gnu-stack.xml the
preferred incantation is:
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
--
Amaury Forgeot d'Arc
More information about the pypy-dev
mailing list