Re: Unexecutable stack

Michael Meissner (meissner@cygnus.com)
Tue, 28 Dec 1999 10:19:23 -0500


On Mon, Dec 27, 1999 at 10:49:43PM +0100, Martin Dalecki wrote:
> And it would prevent anything from working which is emplying the stack
> as a trampoline to pass around ... guess what ... for example thrown
> exceptions.

Just to be clear, it is not nested functions per se that needs trampolines, but
taking the address of a nested function. The address then points to the thunk
on the stack that sets up the hidden parameter that passes the enclosing frame
information, and jumps to the real function.

-- 
Michael Meissner, Cygnus Solutions
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886
email: meissner@cygnus.com	phone: 978-486-9304	fax: 978-692-4482

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/