[PATCH] Set __libc_stack_end earlier on all arches,...

Ulrich Drepper drepper@redhat.com
Wed Sep 24 20:41:00 GMT 2003


Steven Munroe wrote:

> I would like an explanation of why we are doing this. Generally arbitrarily
> marking the stack executable is a bad idea.

Nobody disagrees.  The execstack functionality is exactly there to avoid
having an executable stack unless really needed.  To to this binaries
need to be marked appropriately and the defaults (what happens if the
status isn't known for a file) have to be selected correctly for each
platform.  See Jakub patches to ld, see the extra section gcc creates to
mark stack usage (.note.GNU-stack).

-- 
--------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------



More information about the Libc-hacker mailing list