summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-07-08 12:05:55 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-07-08 12:05:55 +0000
commitcd5d45604f14f3c21d18630d84a8286f55770148 (patch)
treeb2f0f5605032ab8bdeab94ff630f6c0947b73a60 /toolchain
parentceda9f1554765dbc577fa26e07f7daaf08e69186 (diff)
downloadmtk-20170518-cd5d45604f14f3c21d18630d84a8286f55770148.zip
mtk-20170518-cd5d45604f14f3c21d18630d84a8286f55770148.tar.gz
mtk-20170518-cd5d45604f14f3c21d18630d84a8286f55770148.tar.bz2
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 <nbd@openwrt.org> SVN-Revision: 46266
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/musl/patches/200-add_libssp_nonshared.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolchain/musl/patches/200-add_libssp_nonshared.patch b/toolchain/musl/patches/200-add_libssp_nonshared.patch
index af05765..f696d4e 100644
--- a/toolchain/musl/patches/200-add_libssp_nonshared.patch
+++ b/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