Skip to contentSkip to conversation

Compile fix for 2.6.18-rc1 on Ubuntu Edgy (-fstack-protector)

PATCH New Niels Kristian Bech Jensen 1 participant 1 message Jul 6, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Compile fix for 2.6.18-rc1 on Ubuntu Edgy (-fstack-protector)

This patch makes it possible to build the 2.6.18-rc1 kernel on Ubuntu Edgy (powerpc architecture).

_________________________________________________________________
Vælg selv hvordan du vil kommunikere - skrift, tale, video eller billeder med MSN Messenger: http://messenger.msn.dk

arch/powerpc/boot/Makefile +4 -0
diff -uprN linux-2.6.18-rc1.orig/arch/powerpc/boot/Makefile linux-2.6.18-rc1/arch/powerpc/boot/Makefile
@@ -41,6 +41,10 @@ src-boot += $(zlib)
 src-boot := $(addprefix $(obj)/, $(src-boot))
 obj-boot := $(addsuffix .o, $(basename $(src-boot)))
 
+# Force gcc to behave correct even for buggy distributions
+BOOTCFLAGS	+= $(call cc-option, -fno-stack-protector,) \
+		   $(call cc-option, -fno-stack-protector-all,)
+
 BOOTCFLAGS	+= -I$(obj) -I$(srctree)/$(obj)
 
 quiet_cmd_copy_zlib = COPY    $@
Makefile +2 -2
diff -uprN linux-2.6.18-rc1.orig/Makefile linux-2.6.18-rc1/Makefile
@@ -310,8 +310,8 @@ CPPFLAGS        := -D__KERNEL__ $(LINUXI
 CFLAGS          := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
                    -fno-strict-aliasing -fno-common
 # Force gcc to behave correct even for buggy distributions
-CFLAGS          += $(call cc-option, -fno-stack-protector-all \
-                                     -fno-stack-protector)
+CFLAGS          += $(call cc-option, -fno-stack-protector,) \
+                   $(call cc-option, -fno-stack-protector-all,)
 AFLAGS          := -D__ASSEMBLY__
 
 # Read KERNELRELEASE from include/config/kernel.release (if it exists)