This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH, GOLD, AArch64] default stack not executable
On Thu, Sep 21, 2017 at 10:56 PM, Cary Coutant <ccoutant@gmail.com> wrote:
> Any thoughts on turning on --warn-execstack by default?
--warn-execstack does two things.
1) Warn if a missing GNU-stack note causes the stack to be marked as executable.
2) Warn if a present GNU-stack note causes the stack to be marked as executable.
I don't think the second one should be on by default, as this would be
inconvenient for anyone using nested functions on targets that require
executable stack trampolines. Correctly written and compiled code
should not be producing warnings by default.
I think the first one could be on by default. It has been 13 years
since we added GNU-stack notes. If there are ones that are still
missing, we should warn people. This would not affect aarch64 and
64-bit ppc, as don't mark the stack as executable when a note is
missing now.
Jim
- References:
- [PATCH, GOLD, AArch64] default stack not executable
- Re: [PATCH, GOLD, AArch64] default stack not executable
- Re: [PATCH, GOLD, AArch64] default stack not executable
- Re: [PATCH, GOLD, AArch64] default stack not executable
- Re: [PATCH, GOLD, AArch64] default stack not executable