Browse Source

musl: call a_crash() inside __stack_chk_fail_local instead of calling __stack_chk_fail

Fixes relocation errors on PowerPC

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 46266
Felix Fietkau 10 years ago
parent
commit
cd5d45604f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      toolchain/musl/patches/200-add_libssp_nonshared.patch

+ 2 - 2
toolchain/musl/patches/200-add_libssp_nonshared.patch

@@ -51,8 +51,8 @@ index 0000000..2b403a6
 --- /dev/null
 +++ b/libssp_nonshared/__stack_chk_fail_local.c
 @@ -0,0 +1,2 @@
-+extern void __stack_chk_fail(void);
-+void __attribute__((visibility ("hidden"))) __stack_chk_fail_local(void) { __stack_chk_fail(); }
++#include "atomic.h"
++void __attribute__((visibility ("hidden"))) __stack_chk_fail_local(void) { a_crash(); }
 -- 
 2.1.4