From 4a9d6e50bb800eeadf579eb36b63e8b2eedb0d43 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Wed, 18 Apr 2012 12:57:40 +0400 Subject: Fix segv when unwinding stack past __libc_init. This change mirrors cd15bac for statically-linked binaries. Change-Id: Id870832a50b37f0ef3e79e1ed03ed31390bfc9ef --- libc/arch-arm/bionic/crtbegin_static.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libc/arch-arm/bionic/crtbegin_static.S b/libc/arch-arm/bionic/crtbegin_static.S index e62ac1d..087ce36 100644 --- a/libc/arch-arm/bionic/crtbegin_static.S +++ b/libc/arch-arm/bionic/crtbegin_static.S @@ -53,7 +53,9 @@ _start: ldr r2, =main adr r3, 1f ldr r4, =__libc_init - bx r4 + blx r4 + mov r0, #0 + bx r0 1: .long __PREINIT_ARRAY__ .long __INIT_ARRAY__ -- cgit v1.1