This patch is needed to compile kernel with hardened GCC. 

-- 
Aki Tuomi

--- 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 \
-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to