"Exec Shield" for Linux
Posted May 2, 2003 22:29 UTC (Fri) by
JoeBuck (subscriber, #2330)
In reply to:
"Exec Shield" for Linux by leonb
Parent article:
"Exec Shield" for Linux
No, this is incorrect; the thunks that GNU C++ uses for multiple inheritance are not on the stack. They are in the program text section just like all other code. (The thunk basically just adjusts the value of the this pointer and then jumps to the entry point of the virtual function).
For nested functions, a GCC extension, a "trampoline" function is built that lives on the stack, so a non-executable stack patch will break this. But standard C and C++ codes should not be affected.
(
Log in to post comments)