Hi,

2011/5/13 Ilya Osadchiy <osadchiy.i...@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,"",@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,"",@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
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to