Fix MIPS waitid build [committed]

Joseph Myers joseph@codesourcery.com
Wed Dec 10 21:28:00 GMT 2014


On Wed, 10 Dec 2014, Rich Felker wrote:

> Wouldn't it be preferable just to fix whatever the underlying cause
> is? It sounds like some ugly and fragile hack is being used to
> position the syscall arguments on the stack and I wouldn't be
> surprised if it's only working by chance. I've seen other bad code

A single asm adjusts the stack, puts arguments there, does the syscall and 
restores the stack.  The frame pointer is needed to avoid the stack 
pointer adjustment breaking unwind info.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list