freebsd-dev/lib/libc/powerpc64/gen
Brandon Bergren e039e3d1d2 [POWERPC] Fix ppc64 makecontext() parameter overflow handling.
On ELFv2, the overflow parameters in the stack frame are at a different offset
from sp than ELFv1. Adjust code to use the correct offset in all cases.

This had resulted in argv[8] and up being copied to the incorrect address
in the new context's initial stack frame.

This is not necessarily the only bug in this function, I need to do a full
review still and ensure the rest of the math is sane for ELFv2 stack frames.

Reported by:	pherde (Probably. My notes are a bit unclear.)
Reviewed by:	jhibbits (in irc)
Sponsored by:	Tag1 Consulting, Inc.
2020-08-06 17:49:19 +00:00
..
_ctx_start.S [PowerPC] Fix *context on ELFv2 2019-11-16 20:33:46 +00:00
_set_tp.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
_setjmp.S
fabs.S
flt_rounds.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
fpgetmask.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
fpgetround.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
fpgetsticky.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
fpsetmask.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
fpsetround.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
infinity.c
makecontext.c [POWERPC] Fix ppc64 makecontext() parameter overflow handling. 2020-08-06 17:49:19 +00:00
Makefile.inc
setjmp.S
signalcontext.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
sigsetjmp.S
syncicache.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00