summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-04-14 15:44:43 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:37 +0200
commit631049ff3a01d29da3248a62ac5a412d55490e03 (patch)
treeb82705268f11bbb4e8600a789f21b8d05e6c83ed /libc
parentdaace91624c983b0dabd1c4f391b45cfc5528701 (diff)
ssp-local.c: make sure that -fstack-protector is not enabled when compiling file
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/ssp-local.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/ssp-local.c b/libc/sysdeps/linux/common/ssp-local.c
index 6b1809a76..bea11a891 100644
--- a/libc/sysdeps/linux/common/ssp-local.c
+++ b/libc/sysdeps/linux/common/ssp-local.c
@@ -21,6 +21,10 @@
* copied stack_chk_fail_local.c from glibc and adapted for uClibc
*/
+#if defined __SSP__ || defined __SSP_ALL__
+# error "file must not be compiled with stack protection enabled on it. Use -fno-stack-protector"
+#endif
+
#include <features.h>
/* On some architectures, this helps needless PIC pointer setup
@@ -29,5 +33,5 @@
void __stack_chk_fail_local (void) attribute_noreturn attribute_hidden;
void __stack_chk_fail_local (void)
{
- __stack_chk_fail ();
+ __stack_chk_fail ();
}