Re: Bug#757052: dietlibc-dev: programs made with diet have executable stacks
Felix von Leitner <[email protected]> Tue, 5 Aug 2014 23:58:34 +0200
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <[email protected]> |
Thus spake Thorsten Glaser ([email protected]): > >all programs made with diet gcc ... > >have executable stacks. They should not. > > > >Workaround: > >Some tiny programs I tried worked after > >execstack -c prog > >to clear the executable stack flag. > can you say anything about this? This should not longer be the case. I noticed a few months (?) ago and fixed it in the CVS at least. It turns out that this is caused by assembler files (*.s, not *.c with inline assembler) that do not declare that the stack is non-executable. No piece of code in dietlibc actually needs the stack to be executable. We now pass -Wa,--noexecstack to as in the Makefile. Felix