SUGGEST: Kernel compile patch

Aki Tuomi cmouse at desteem.org
Thu Sep 22 01:24:38 PDT 2005


This patch is needed to compile kernel with hardened GCC. 

-- 
Aki Tuomi

-------------- next part --------------
--- linux-2.6.11.12.old/Makefile	2005-09-22 11:23:05.000000000 +0300
+++ linux-2.6.11.12/Makefile	2005-09-22 11:16:03.000000000 +0300
@@ -202,7 +202,7 @@
 
 HOSTCC  	= gcc
 HOSTCXX  	= g++
-HOSTCFLAGS	= -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
+HOSTCFLAGS	= -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -no-pie -fno-stack-protector
 HOSTCXXFLAGS	= -O2
 
 # 	Decide whether to build built-in, modular, or both.
@@ -351,7 +351,7 @@
 
 CFLAGS 		:= -Wall -Wstrict-prototypes -Wno-trigraphs \
 	  	   -fno-strict-aliasing -fno-common \
-		   -ffreestanding
+		   -ffreestanding -fno-stack-protector -no-pie
 AFLAGS		:= -D__ASSEMBLY__
 
 export	VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION LOCALVERSION KERNELRELEASE \


More information about the hlfs-dev mailing list