Module: xenomai-head
Branch: master
Commit: 6e016b0753e954664bf3ec4945bd6bbded218073
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=6e016b0753e954664bf3ec4945bd6bbded218073

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Dec 28 19:07:52 2009 +0100

x86_32: make sure CC_STACKPROTECTOR is disabled

---

 include/asm-x86/switch_32.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/asm-x86/switch_32.h b/include/asm-x86/switch_32.h
index bfa0233..0827916 100644
--- a/include/asm-x86/switch_32.h
+++ b/include/asm-x86/switch_32.h
@@ -26,6 +26,11 @@
 #error "Pure kernel header included from user-space!"
 #endif
 
+#ifdef CONFIG_CC_STACKPROTECTOR
+#warning "Buffer overflow detection not supported in 32bit mode"
+#error "Disable CONFIG_CC_STACKPROTECTOR in your kernel configuration"
+#endif
+
 static inline void xnarch_switch_threads(xnarchtcb_t *out_tcb,
                                         xnarchtcb_t *in_tcb,
                                         struct task_struct *outproc,


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to