mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 02:43:53 +08:00
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
This commit is contained in:
parent
ceda9f1554
commit
cd5d45604f
@ -51,8 +51,8 @@ index 0000000..2b403a6
|
|||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/libssp_nonshared/__stack_chk_fail_local.c
|
+++ b/libssp_nonshared/__stack_chk_fail_local.c
|
||||||
@@ -0,0 +1,2 @@
|
@@ -0,0 +1,2 @@
|
||||||
+extern void __stack_chk_fail(void);
|
+#include "atomic.h"
|
||||||
+void __attribute__((visibility ("hidden"))) __stack_chk_fail_local(void) { __stack_chk_fail(); }
|
+void __attribute__((visibility ("hidden"))) __stack_chk_fail_local(void) { a_crash(); }
|
||||||
--
|
--
|
||||||
2.1.4
|
2.1.4
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user