aboutsummaryrefslogtreecommitdiff
path: root/libc/arch-arm/bionic/__bionic_clone.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/arch-arm/bionic/__bionic_clone.S')
-rw-r--r--libc/arch-arm/bionic/__bionic_clone.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/arch-arm/bionic/__bionic_clone.S b/libc/arch-arm/bionic/__bionic_clone.S
index 6669b93a2..3fe212b47 100644
--- a/libc/arch-arm/bionic/__bionic_clone.S
+++ b/libc/arch-arm/bionic/__bionic_clone.S
@@ -61,6 +61,8 @@ ENTRY_PRIVATE(__bionic_clone)
b __set_errno_internal
.L_bc_child:
+ # We're in the child now. Set the end of the frame record chain.
+ mov fp, #0
# Setting lr to 0 will make the unwinder stop at __start_thread.
mov lr, #0
# Call __start_thread with the 'fn' and 'arg' we stored on the child stack.