aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/musl
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
commit2bf72251224f65511e6c088e5b5635243f448c5a (patch)
treeac80bff5b9f199345a51f0b68cad4a4624f318ab /toolchain/musl
parent450ccc60e1803080e3cc4bbccdf4f50935ded05c (diff)
downloadmaster-187ad058-2bf72251224f65511e6c088e5b5635243f448c5a.tar.gz
master-187ad058-2bf72251224f65511e6c088e5b5635243f448c5a.tar.bz2
master-187ad058-2bf72251224f65511e6c088e5b5635243f448c5a.zip
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46266 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/musl')
-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 af0576585e..f696d4e537 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