diff options
author | Niels Kristian Bech Jensen <nkbj@mail.tele.dk> | 2006-07-02 07:02:27 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-07-07 06:19:15 -0400 |
commit | fda7ffd25fc5bbe1b4209dfafb854c7ad7308c93 (patch) | |
tree | 1611f33a11f6ecb9beef7999b4a261f4af14e75a /arch | |
parent | 120bda20c6f64b32e8bfbdd7b34feafaa5f5332e (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/Makefile | 4 |
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) | |||
41 | src-boot := $(addprefix $(obj)/, $(src-boot)) | 41 | src-boot := $(addprefix $(obj)/, $(src-boot)) |
42 | obj-boot := $(addsuffix .o, $(basename $(src-boot))) | 42 | obj-boot := $(addsuffix .o, $(basename $(src-boot))) |
43 | 43 | ||
44 | ifeq ($(call cc-option-yn, -fstack-protector),y) | ||
45 | BOOTCFLAGS += -fno-stack-protector | ||
46 | endif | ||
47 | |||
44 | BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj) | 48 | BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj) |
45 | 49 | ||
46 | quiet_cmd_copy_zlib = COPY $@ | 50 | quiet_cmd_copy_zlib = COPY $@ |