linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.17] Add -fno-stack-protector to BOOTCFLAGS in arch/powerpc/boot/Makefile.
@ 2006-07-02 11:02 Niels Kristian Bech Jensen
  0 siblings, 0 replies; only message in thread
From: Niels Kristian Bech Jensen @ 2006-07-02 11:02 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 389 bytes --]

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


[-- Attachment #2: powerpc-2.6.17.diff --]
[-- Type: text/x-patch, Size: 492 bytes --]

--- linux-source-2.6.17/arch/powerpc/boot/Makefile~	2006-06-29 03:23:03.000000000 +0200
+++ linux-source-2.6.17/arch/powerpc/boot/Makefile	2006-07-02 12:44:34.000000000 +0200
@@ -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    $@

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-07-02 11:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-02 11:02 [PATCH 2.6.17] Add -fno-stack-protector to BOOTCFLAGS in arch/powerpc/boot/Makefile Niels Kristian Bech Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).