Gentoo Logo
Gentoo Spaceship

Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-embedded
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
To: gentoo-embedded@g.o
From: "Peter S. Mazinger" <ps.m@...>
Subject: Re: upgrading to gcc-3.3.6
Date: Mon, 3 Oct 2005 08:26:45 +0200 (CEST)
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 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@g.o mailing list

Re: upgrading to gcc-3.3.6
-- Natanael Copa
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: upgrading to gcc-3.3.6
Next by thread:
more problems with gdbm
Previous by date:
Re: X server on minimal system
Next by date:
Re: Anyone got a Soekris 5501 board can test a trivial kernel patch ?

Updated Apr 23, 2012

Summary: Archive of the gentoo-embedded mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.