freebsd-dev/lib/libc/powerpc64
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
..
gen [POWERPC] Fix ppc64 makecontext() parameter overflow handling. 2020-08-06 17:49:19 +00:00
softfloat
string Fix r358688 -- Remember to actually save r3 before processing. 2020-03-11 23:34:44 +00:00
sys
_fpmath.h
arith.h [PowerPC] Fully define gdtoa settings on powerpc64. 2019-12-13 20:30:26 +00:00
gd_qnan.h
Makefile.inc
static_tls.h Fix initial exec TLS mode for dynamically loaded shared objects. 2019-03-29 17:52:57 +00:00
Symbol.map
SYS.h