public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] upgrading to gcc-3.3.6
@ 2005-09-22 14:10 Natanael Copa
  2005-09-26  9:40 ` Peter S. Mazinger
  0 siblings, 1 reply; 4+ messages in thread
From: Natanael Copa @ 2005-09-22 14:10 UTC (permalink / raw
  To: gentoo-embedded

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?

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

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-embedded] upgrading to gcc-3.3.6
  2005-09-22 14:10 [gentoo-embedded] upgrading to gcc-3.3.6 Natanael Copa
@ 2005-09-26  9:40 ` Peter S. Mazinger
  2005-09-26 10:43   ` Natanael Copa
  0 siblings, 1 reply; 4+ messages in thread
From: Peter S. Mazinger @ 2005-09-26  9:40 UTC (permalink / raw
  To: gentoo-embedded

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 <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-embedded] upgrading to gcc-3.3.6
  2005-09-26  9:40 ` Peter S. Mazinger
@ 2005-09-26 10:43   ` Natanael Copa
  2005-10-03  6:26     ` Peter S. Mazinger
  0 siblings, 1 reply; 4+ messages in thread
From: Natanael Copa @ 2005-09-26 10:43 UTC (permalink / raw
  To: gentoo-embedded

Peter S. Mazinger wrote:

>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:
>>    
>>
>>WARNING: //lib/modules/2.6.11-hardened-r15/fs/fuse.ko needs unknown
>>symbol __sta ck_smash_handler
>>    
>>
...

>>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.
>  
>

I worked around it by selecting the nossp gcc profile, compiled all the
modules and switched back to the standard hardened gcc profile. Now I
cannot reproduce it.

Could it have been a bug in portage that have been fixed? (I did a
emerge -ssync today to get that gdbm update)

Thanks!

--
Natanael Copa

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-embedded] upgrading to gcc-3.3.6
  2005-09-26 10:43   ` Natanael Copa
@ 2005-10-03  6:26     ` Peter S. Mazinger
  0 siblings, 0 replies; 4+ messages in thread
From: Peter S. Mazinger @ 2005-10-03  6:26 UTC (permalink / raw
  To: gentoo-embedded

On Mon, 26 Sep 2005, Natanael Copa wrote:

> Peter S. Mazinger wrote:
> 
> >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:
> >>    
> >>
> >>WARNING: //lib/modules/2.6.11-hardened-r15/fs/fuse.ko needs unknown
> >>symbol __sta ck_smash_handler
> >>    
> >>
> ...
> 
> >>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.
> >  
> >
> 
> I worked around it by selecting the nossp gcc profile, compiled all the
> modules and switched back to the standard hardened gcc profile. Now I
> cannot reproduce it.
> 
> Could it have been a bug in portage that have been fixed? (I did a
> emerge -ssync today to get that gdbm update)

I don't think so, as I said, the way you compiled your modules was 
incorrect. if gcc gets -D__KERNEL__ no ssp is enabled (independently of 
the chosen hardened/non-hardened compiler), if you build within the normal 
kernel tree, this is set for you, but if you try to build addons, this has 
to be done by the Makefile used.

That's why I asked for your command-line for one of these modules (to 
clarify this) ... it seems too late.

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-10-31  3:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-22 14:10 [gentoo-embedded] upgrading to gcc-3.3.6 Natanael Copa
2005-09-26  9:40 ` Peter S. Mazinger
2005-09-26 10:43   ` Natanael Copa
2005-10-03  6:26     ` Peter S. Mazinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox