https://sourceware.org/bugzilla/show_bug.cgi?id=28254

Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rearnsha at gcc dot gnu.org

--- Comment #8 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
No, because that might lead to accidental security issues.  Consider for
example a stub of code that is intended to be copied somewhere else before it
is executed, it might be mixed up with some data that could be 'executed'
through an exploit if it were accidentally marked executable.

It's far better that you do what has already been suggested and explicitly mark
your section as executable than have the tools try to 'guess' something that
might be unsafe.

.text and .data are special.  These have conventional uses so there's no guess
work required.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to