aboutsummaryrefslogtreecommitdiffstats
path: root/main/libc0.9.32/ssp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/libc0.9.32/ssp.patch')
-rw-r--r--main/libc0.9.32/ssp.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/main/libc0.9.32/ssp.patch b/main/libc0.9.32/ssp.patch
new file mode 100644
index 0000000000..f0f75a7d85
--- /dev/null
+++ b/main/libc0.9.32/ssp.patch
@@ -0,0 +1,27 @@
+--- uClibc-0.9.32-rc2/libc/sysdeps/linux/common/ssp.c
++++ uClibc-0.9.32-rc2.mod/libc/sysdeps/linux/common/ssp.c
+@@ -86,6 +86,7 @@
+ }
+
+ void __stack_chk_fail(void) attribute_noreturn __cold;
++libc_hidden_proto(__stack_chk_fail)
+ void __stack_chk_fail(void)
+ {
+ static const char msg1[] = "stack smashing detected: ";
+@@ -99,8 +100,10 @@
+ while(1)
+ terminate();
+ }
++libc_hidden_def(__stack_chk_fail)
+
+ void __chk_fail(void) attribute_noreturn;
++libc_hidden_proto(__chk_fail)
+ void __chk_fail(void)
+ {
+ static const char msg1[] = "buffer overflow detected: ";
+@@ -114,4 +117,5 @@
+ while(1)
+ terminate();
+ }
++libc_hidden_def(__chk_fail)
+