[PATCH] Set __libc_stack_end earlier on all arches,...
David Mosberger
davidm@napali.hpl.hp.com
Wed Sep 24 22:13:00 GMT 2003
>>>>> On Wed, 24 Sep 2003 21:36:22 +0200, Jakub Jelinek <jakub@redhat.com> said:
Jakub> The only special arches here are ia64 and ppc64, as there
Jakub> trampolines don't actually need executable stack. Because of
Jakub> this I chose not to add .note.GNU-stack/PT_GNU_STACK marking
Jakub> for these two arches. Unfortunately, on both these arches
Jakub> kernel defaults to executable stack as I found out today and
Jakub> thus there can be programs which rely on this and so for
Jakub> binary compatibility need to be assumed as needing executable
Jakub> stack too.
Why do you say this?
$ uname -a
Linux wailua.hpl.hp.com 2.6.0-test5 #30 Tue Sep 16 11:28:09 PDT 2003 ia64 GNU/Linux
$ cat /proc/self/maps |grep 60000fff7
60000fff7fffc000-60000fff80000000 rw-p 00000000 00:00 0
We stopped turning on execute permission some time again (2.4.1x).
For ia64 Linux, there is an ELF OS flag which can be set to force
executable data/stack (the user-tool to do this is called "chatr").
--david
More information about the Libc-hacker
mailing list