[BZ 16372] fixing tst-longjmp_chk2 on ia64
Andreas Schwab
schwab@linux-m68k.org
Fri Dec 27 15:24:00 GMT 2013
Mike Frysinger <vapier@gentoo.org> writes:
> i was going through the outstanding ia64 test failures when i came across tst-
> longjmp_chk2. that test is designed to make sure the longjmp fortify logic
> handles signal stacks correctly which the current ia64 code does not. to
> implement this, you have to call sigaltstack from asm code, and my ia64 skills
> are bad :).
>
> here's what i've got so far:
> #define CHECK_RSP(reg) \
> /* First see if target stack is within current one. */ \
> cmp.ltu p0, p8 = reg, r12; \
> (p8) br.cond.dpnt .Lok;; \
> \
> /* Maybe it's an alternative signal stack. */ \
> adds r34 = -sizeSS, r12; \
How did you allocate the space for the stack_t?
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