Messages in this thread | | | Date | Thu, 03 Jun 2004 09:21:49 -0700 | From | Ulrich Drepper <> | Subject | Re: [announce] [patch] NX (No eXecute) support for x86, 2.6.7-rc2-bk2 |
| |
Ingo Molnar wrote: > gcc's > PT_GNU_STACK mechanism is very conservative - e.g. if an application > does an asm() then gcc assumes that it might rely on stack executability > and emits the X flag.
Actually, this isn't the case. asm() alone don't trigger this. There are far too many of them in use. And there never has been a reported problem. Only trampolines etc cause gcc to automatically request the X flag to be set. In case an asm() indeed causes problems the user can pass the --execstack option to the linker.
It's all explained in
http://people.redhat.com/drepper/nonselsec.pdf
-- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |