diff options
author | Niels Kristian Bech Jensen <nkbj@mail.tele.dk> | 2006-07-02 13:02:27 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-07-07 20:19:15 +1000 |
commit | fda7ffd25fc5bbe1b4209dfafb854c7ad7308c93 (patch) | |
tree | 1611f33a11f6ecb9beef7999b4a261f4af14e75a /arch/powerpc/boot | |
parent | 120bda20c6f64b32e8bfbdd7b34feafaa5f5332e (diff) | |
download | op-kernel-dev-fda7ffd25fc5bbe1b4209dfafb854c7ad7308c93.zip op-kernel-dev-fda7ffd25fc5bbe1b4209dfafb854c7ad7308c93.tar.gz |
[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/powerpc/boot')
-rw-r--r-- | arch/powerpc/boot/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index d961bfe..afc776f 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile @@ -41,6 +41,10 @@ src-boot += $(zlib) src-boot := $(addprefix $(obj)/, $(src-boot)) obj-boot := $(addsuffix .o, $(basename $(src-boot))) +ifeq ($(call cc-option-yn, -fstack-protector),y) +BOOTCFLAGS += -fno-stack-protector +endif + BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj) quiet_cmd_copy_zlib = COPY $@ |