From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1EJpUf-0005r0-Sh for garchives@archives.gentoo.org; Mon, 26 Sep 2005 09:41:54 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id j8Q9YQiU016296; Mon, 26 Sep 2005 09:34:26 GMT Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id j8Q9YPlQ010813 for ; Mon, 26 Sep 2005 09:34:25 GMT Received: (qmail invoked by alias); 26 Sep 2005 09:41:15 -0000 Received: from host-6.mikroweb.hu (EHLO mail.bridge.intra) [193.17.175.6] by mail.gmx.net (mp018) with SMTP; 26 Sep 2005 11:41:15 +0200 X-Authenticated: #507653 Received: from localhost (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id D2A8B3902 for ; Mon, 26 Sep 2005 11:41:13 +0200 (CEST) Received: from mail.bridge.intra ([127.0.0.1]) by localhost (lnx.bridge.intra [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13937-01 for ; Mon, 26 Sep 2005 11:40:50 +0200 (CEST) Received: by mail.bridge.intra (Postfix, from userid 200) id E91F23BFD; Mon, 26 Sep 2005 11:40:44 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.bridge.intra (Postfix) with ESMTP id BCB3E3902 for ; Mon, 26 Sep 2005 11:40:44 +0200 (CEST) Date: Mon, 26 Sep 2005 11:40:43 +0200 (CEST) From: "Peter S. Mazinger" To: gentoo-embedded@lists.gentoo.org Subject: Re: [gentoo-embedded] upgrading to gcc-3.3.6 In-Reply-To: <4332BB4D.10607@tanael.org> Message-ID: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at localhost X-Y-GMX-Trusted: 0 X-Archives-Salt: 55f55f4e-2e45-42bb-a06c-ea67339f57b5 X-Archives-Hash: 7c5a5b4d0204c1d4aaf864fd20dd0667 On Thu, 22 Sep 2005, Natanael Copa wrote: > I upgraded to gcc-3.3.6 today and when recompiling the drivers (kernel > modules in the portage tree) I got some warnings and the modules fails > to load: > > * Updating module dependencies for 2.6.11-hardened-r15 ... > WARNING: //lib/modules/2.6.11-hardened-r15/fs/fuse.ko needs unknown > symbol __sta ck_smash_handler > WARNING: //lib/modules/2.6.11-hardened-r15/fs/fuse.ko needs unknown > symbol __gua rd > WARNING: //lib/modules/2.6.11-hardened-r15/net/wireless/ipw2200.ko needs > unknown symbol __stack_smash_handler > WARNING: //lib/modules/2.6.11-hardened-r15/net/wireless/ipw2200.ko needs > unknown symbol __guard > WARNING: > //lib/modules/2.6.11-hardened-r15/net/ieee80211/ieee80211_crypt_tkip.ko > needs unknown symbol __stack_smash_handler > WARNING: > //lib/modules/2.6.11-hardened-r15/net/ieee80211/ieee80211_crypt_wep.ko > needs unknown symbol __stack_smash_handler > WARNING: //lib/modules/2.6.11-hardened-r15/net/ieee80211/ieee80211.ko > needs unkn own symbol __stack_smash_handler > WARNING: > //lib/modules/2.6.11-hardened-r15/net/ieee80211_crypt_wep-r8180.ko need > s unknown symbol __stack_smash_handler > WARNING: > //lib/modules/2.6.11-hardened-r15/net/ieee80211_crypt_wep-r8180.ko need > s unknown symbol __guard > WARNING: //lib/modules/2.6.11-hardened-r15/net/ieee80211_crypt-r8180.ko > needs un known symbol __stack_smash_handler > WARNING: //lib/modules/2.6.11-hardened-r15/net/ieee80211_crypt-r8180.ko > needs un known symbol __guard > WARNING: //lib/modules/2.6.11-hardened-r15/net/ieee80211-r8180.ko needs > unknown symbol __stack_smash_handler > WARNING: //lib/modules/2.6.11-hardened-r15/net/ieee80211-r8180.ko needs > unknown symbol __guard > WARNING: //lib/modules/2.6.11-hardened-r15/net/r8180.ko needs unknown > symbol __s tack_smash_handler > WARNING: //lib/modules/2.6.11-hardened-r15/net/r8180.ko needs unknown > symbol __g uard > WARNING: //lib/modules/2.6.11-hardened-r15/net/rt2500.ko needs unknown > symbol __ stack_smash_handler > WARNING: //lib/modules/2.6.11-hardened-r15/net/rt2500.ko needs unknown > symbol __ guard > WARNING: //lib/modules/2.6.11-hardened-r15/net/ath_pci.ko needs unknown > symbol _ _stack_smash_handler > WARNING: //lib/modules/2.6.11-hardened-r15/net/ath_rate_onoe.ko needs > unknown sy mbol __stack_smash_handler > WARNING: //lib/modules/2.6.11-hardened-r15/net/ath_rate_amrr.ko needs > unknown sy mbol __stack_smash_handler > WARNING: //lib/modules/2.6.11-hardened-r15/net/wlan_xauth.ko needs > unknown symbo l __stack_smash_handler > WARNING: //lib/modules/2.6.11-hardened-r15/net/wlan_wep.ko needs unknown > symbol __stack_smash_handler > WARNING: //lib/modules/2.6.11-hardened-r15/net/wlan_tkip.ko needs > unknown symbol __stack_smash_handler > WARNING: //lib/modules/2.6.11-hardened-r15/net/wlan.ko needs unknown > symbol __st ack_smash_handler > WARNING: //lib/modules/2.6.11-hardened-r15/net/ath_hal.ko needs unknown > symbol _ _stack_smash_handler > WARNING: //lib/modules/2.6.11-hardened-r15/usb/video/spca5xx.ko needs > unknown sy mbol __stack_smash_handler > WARNING: //lib/modules/2.6.11-hardened-r15/usb/video/spca5xx.ko needs > unknown sy mbol > __guard [ ok ] > * Adding module to moduledb. > >>> Regenerating /etc/ld.so.cache... > >>> sys-fs/fuse-2.3.0 merged. > > So I guess there is something wrong with my gcc upgrade. I guess I need > to do a proper toolchain upgrade? no, your module build process (Makefiles) does not add -D__KERNEL__ to the build, so ssp will be enabled on the built modules (not supported by any gentoo kernel). Nothing in the kernel and module build process is allowed to enable -fstack-protector (either by CFLAGS or any other method) Rebuild one of the above modules and paste your compiler line. Peter > I have already compiled those (in specified order): > gcc (3.3.5 -> 3.3.6) uclibc binutils > > But it still fails to find the SSP symbols. > What can I do to fix it? Do I have to recompile the world? (like > described in http://www.gentoo.org/doc/en/new-upgrade-to-gentoo-1.4.xml) > > Are there any shortcuts? > > > # gcc-config -l > [1] i386-gentoo-linux-uclibc-3.3.5-20050130-hardened > [2] i386-gentoo-linux-uclibc-3.3.6 * > [3] i386-gentoo-linux-uclibc-3.3.6-hardenednopie > [4] i386-gentoo-linux-uclibc-3.3.6-hardenednopiessp > [5] i386-gentoo-linux-uclibc-3.3.6-hardenednossp > [6] i386-gentoo-linux-uclibc-3.3.6-vanilla > > > -- > Natanael Copa > > -- Peter S. Mazinger ID: 0xA5F059F2 Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2 -- gentoo-embedded@gentoo.org mailing list