[PATCH][alpha] Fix ____longjmp_chk
Andreas Schwab
schwab@linux-m68k.org
Wed Mar 23 12:02:00 GMT 2011
You can use the various C implementations of ____longjmp_chk as a model,
they are known working. The point of the test is to look whether
longjmp jumps back to a stack frame that is already left, ie. the
function containing setjmp has already returned. It does not (and
cannot) check whether longjmp jumps to some random frame that may be
part of a different thread's stack, for example. The sigaltstack check
is needed to allow jumping out of a signal frame on the alternate signal
stack.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Libc-alpha
mailing list