Skip to content
Commit bbd248ac authored by Adhemerval Zanella's avatar Adhemerval Zanella
Browse files

mips: FIx clone3 implementation (BZ 31325)



For o32 we need to setup a minimal stack frame to allow cprestore
on __thread_start_clone3 (which instruct the linker to save the
gp for PIC).  Also, there is no guarantee by kABI that $8 will be
preserved after syscall execution, so we need to save it on the
provided stack.

Checked on mipsel-linux-gnu.

Reported-by: default avatarKhem Raj <raj.khem@gmail.com>
Tested-by: default avatarKhem Raj <raj.khem@gmail.com>
parent e7b90e6e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment