Changeset 46266


Ignore:
Timestamp:
2015-07-08T14:05:55+02:00 (3 years ago)
Author:
nbd
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/toolchain/musl/patches/200-add_libssp_nonshared.patch

    r46108 r46266  
    5252+++ b/libssp_nonshared/__stack_chk_fail_local.c 
    5353@@ -0,0 +1,2 @@ 
    54 +extern void __stack_chk_fail(void); 
    55 +void __attribute__((visibility ("hidden"))) __stack_chk_fail_local(void) { __stack_chk_fail(); } 
     54+#include "atomic.h" 
     55+void __attribute__((visibility ("hidden"))) __stack_chk_fail_local(void) { a_crash(); } 
    5656--  
    57572.1.4 
Note: See TracChangeset for help on using the changeset viewer.