[pypy-issue] [issue1054] Adding ELF metadata to generated code

Dirkjan Ochtman tracker at bugs.pypy.org
Thu Feb 16 10:02:55 CET 2012


New submission from Dirkjan Ochtman <dirkjan at ochtman.nl>:

Another patch from Gentoo. IIRC this is needed for hardened systems.

--- pypy-pypy-release-1.7/pypy/translator/c/gcc/trackgcroot.py.bak     
2011-11-29 14:22:29.000000000 +0100
+++ pypy-pypy-release-1.7/pypy/translator/c/gcc/trackgcroot.py  2011-11-29
14:22:55.000000000 +0100
@@ -1694,6 +1694,7 @@
             }
             """
         elif self.format in ('elf64', 'darwin64'):
+            print >> output, "\t.section .note.GNU-stack,\"\",%progbits"
             print >> output, "\t.text"
             print >> output, "\t.globl %s" % _globalname('pypy_asm_stackwalk')
             _variant(elf64='.type pypy_asm_stackwalk, @function',

----------
messages: 3944
nosy: djc, pypy-issue
priority: bug
status: unread
title: Adding ELF metadata to generated code

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1054>
________________________________________


More information about the pypy-issue mailing list