From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932112AbWGAXg1 (ORCPT ); Sat, 1 Jul 2006 19:36:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932115AbWGAXg1 (ORCPT ); Sat, 1 Jul 2006 19:36:27 -0400 Received: from terminus.zytor.com ([192.83.249.54]:62436 "EHLO terminus.zytor.com") by vger.kernel.org with ESMTP id S932112AbWGAXg0 (ORCPT ); Sat, 1 Jul 2006 19:36:26 -0400 Message-ID: <44A706C4.7070908@zytor.com> Date: Sat, 01 Jul 2006 16:35:32 -0700 From: "H. Peter Anvin" User-Agent: Thunderbird 1.5.0.4 (X11/20060614) MIME-Version: 1.0 To: Sam Ravnborg CC: Miles Lane , Arjan van de Ven , Andrew Morton , LKML Subject: Re: 2.6.17-mm5 -- Busted toolchain? -- usr/klibc/exec_l.c:59: undefined reference to `__stack_chk_fail' References: <1151788673.3195.58.camel@laptopd505.fenrus.org> <1151789342.3195.60.camel@laptopd505.fenrus.org> <20060701230635.GA19114@mars.ravnborg.org> In-Reply-To: <20060701230635.GA19114@mars.ravnborg.org> Content-Type: multipart/mixed; boundary="------------070506030503040206020404" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This is a multi-part message in MIME format. --------------070506030503040206020404 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sam Ravnborg wrote: > > For klibc you need to patch scripts/Kbuild.klibc > > Appending it to KLIBCWARNFLAGS seems the right place. > > Do you know from what gcc version we can start using -fno-stack-protector? > Here is a patch for klibc. Miles, could you try it out and see if it does what you need? -hpa --------------070506030503040206020404 Content-Type: text/plain; name="patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch" diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc index ac0439e..d30ada2 100644 --- a/scripts/Kbuild.klibc +++ b/scripts/Kbuild.klibc @@ -48,7 +48,7 @@ include $(srctree)/scripts/Kbuild.includ # Defines used when compiling early userspace (klibc programs) # --------------------------------------------------------------------------- -KLIBCREQFLAGS := +KLIBCREQFLAGS := $(call cc_option, -fno-stack-protector, ) KLIBCARCHREQFLAGS := KLIBCOPTFLAGS := KLIBCWARNFLAGS := -W -Wall -Wno-sign-compare -Wno-unused-parameter diff --git a/usr/klibc/arch/arm/MCONFIG b/usr/klibc/arch/arm/MCONFIG index 0023eee..fa3ada2 100644 --- a/usr/klibc/arch/arm/MCONFIG +++ b/usr/klibc/arch/arm/MCONFIG @@ -12,7 +12,7 @@ CPU_TUNE := strongarm KLIBCOPTFLAGS = -Os -march=$(CPU_ARCH) -mtune=$(CPU_TUNE) KLIBCBITSIZE = 32 -KLIBCREQFLAGS = -fno-exceptions +KLIBCREQFLAGS += -fno-exceptions KLIBCSTRIPFLAGS += -R .ARM.exidx ifeq ($(CONFIG_KLIBC_THUMB),y) --------------070506030503040206020404--