posix_spawn: fix stack setup on ia64 [BZ #21275]
commitddc3fb333469c2997798742dc0509dc1e3201d91
authorMike Frysinger <vapier@gentoo.org>
Mon, 20 Mar 2017 08:47:56 +0000 (20 04:47 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 20 Mar 2017 14:42:34 +0000 (20 10:42 -0400)
tree5fb5f8ede997d6e039eb867867caf971afd52dae
parent15e9a4f378c8607c2ae1aa465436af4321db0e23
posix_spawn: fix stack setup on ia64 [BZ #21275]

The ia64-specific clone2 call expects the base of the stack mapping and
the stack size as sep arguments, not an initial stack value as on other
stack-grows-down architectures.  Reuse the stack-grows-up macro so we
pass in the right stack base.

Reported-by: Matt Turner <mattst88@gentoo.org>
ChangeLog
sysdeps/unix/sysv/linux/spawni.c