logoalt Hacker News

Dwedittoday at 3:56 PM2 repliesview on HN

What do you need the executable stack for? You call using a function pointer, there's no executable read/write memory involved in using a function pointer.


Replies

tom_today at 4:03 PM

Nested functions may require a context pointer of some kind, which the caller can't supply. One way of doing this: create a thunk on the stack that provides the context pointer, and use that address as the pointer to the nested function.

But now the stack needs to be executable.

show 1 reply