kernel - Add -fno-stack-protector for kernel build
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 8 Dec 2011 04:14:04 +0000 (20:14 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 8 Dec 2011 04:14:04 +0000 (20:14 -0800)
* Add -fno-stack-protector for kernel build in order to be consistent
  with the other platform kernel builds

* Has no effect with the current version of gcc but may prevent bad vibes
  in the future.

sys/platform/pc64/conf/kern.mk

index d1a6951..ff474a2 100644 (file)
@@ -9,6 +9,7 @@
 # reserved for user applications.
 #
 CFLAGS+=       -mpreferred-stack-boundary=4
+CFLAGS+=       -fno-stack-protector
 CFLAGS+=       -mcmodel=kernel -mno-red-zone -mfpmath=387
 
 CFLAGS+=       -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3