From: Rich Felker Date: Sat, 14 Sep 2013 23:19:11 +0000 (-0400) Subject: fix child stack alignment on mips clone X-Git-Tag: v0.9.14~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bfba15c9b96c2a42bd02f51ff10596a23a677926;p=oweals%2Fmusl.git fix child stack alignment on mips clone unlike other archs, the mips version of clone was not doing anything to align the stack pointer. this seems to have been the cause for some SIGBUS crashes that were observed in posix_spawn. --- diff --git a/src/thread/mips/clone.s b/src/thread/mips/clone.s index 826716ab..6c2e7908 100644 --- a/src/thread/mips/clone.s +++ b/src/thread/mips/clone.s @@ -3,6 +3,7 @@ .type __clone,@function __clone: # Save function pointer and argument pointer on new thread stack + and $5, $5, -8 subu $5, $5, 16 sw $4, 0($5) sw $7, 4($5)