aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorNiels Kristian Bech Jensen <nkbj@mail.tele.dk>2006-07-02 07:02:27 -0400
committerPaul Mackerras <paulus@samba.org>2006-07-07 06:19:15 -0400
commitfda7ffd25fc5bbe1b4209dfafb854c7ad7308c93 (patch)
tree1611f33a11f6ecb9beef7999b4a261f4af14e75a /arch
parent120bda20c6f64b32e8bfbdd7b34feafaa5f5332e (diff)
[POWERPC] Add -fno-stack-protector to BOOTCFLAGS in arch/powerpc/boot/Makefile.
I got some undefined references to __stack_chk_fail in arch/powerpc/boot/stdio.o and arch/powerpc/boot/prom.o when I was trying to build a kernel on Ubuntu Edgy Eft - which includes Stack Smashing Protection. This patch adds -fno-stack-protector to BOOTCFLAGS in arch/powerpc/boot/Makefile (why does BOOTCFLAGS depend on HOSTCFLAGS and not CFLAGS?). Regards, Niels Kristian Bech Jensen Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/boot/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
index d961bfeed05f..afc776f821e5 100644
--- a/arch/powerpc/boot/Makefile
+++ b/arch/powerpc/boot/Makefile
@@ -41,6 +41,10 @@ src-boot += $(zlib)
41src-boot := $(addprefix $(obj)/, $(src-boot)) 41src-boot := $(addprefix $(obj)/, $(src-boot))
42obj-boot := $(addsuffix .o, $(basename $(src-boot))) 42obj-boot := $(addsuffix .o, $(basename $(src-boot)))
43 43
44ifeq ($(call cc-option-yn, -fstack-protector),y)
45BOOTCFLAGS += -fno-stack-protector
46endif
47
44BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj) 48BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj)
45 49
46quiet_cmd_copy_zlib = COPY $@ 50quiet_cmd_copy_zlib = COPY $@