[PyPy-issue] [issue610] The generated pypy binary is unnecessarily flagged as needing an executable stack
Dave Malcolm
pypy-dev-issue at codespeak.net
Thu Dec 16 19:56:37 CET 2010
Dave Malcolm <dmalcolm at redhat.com> added the comment:
The
LDFLAGS=--no-exec-stack make pypy
approach doesn't seem to work; I still end up with a binary that requests an executable stack:
$ eu-readelf -l ./pypy | grep STACK
GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RWE 0x8
Simplest solution is probably to postprocess the ELF file with "execstack":
$ execstack --clear-execstack PATH_TO_ELF_FILE
$ eu-readelf -l ./pypy | grep STACK
GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x8
(all of this is on a Fedora box, BTW; I believe the relevant tools are within the upstream GNU toolchain though)
----------
status: unread -> chatting
_______________________________________________________
PyPy development tracker <pypy-dev-issue at codespeak.net>
<https://codespeak.net/issue/pypy-dev/issue610>
_______________________________________________________
More information about the Pypy-issue
mailing list