On Thu, 2006-03-02 at 00:41 +0000, Roy Marples wrote:
> On Wednesday 01 March 2006 17:41, solar wrote:
> > On Wed, 2006-03-01 at 17:17 +0000, Duncan Coutts wrote:
> > > I presume it's a gentoo patch to gcc-4 to add back in
> > > -fno-stack-protector?
> >
> > For the 4.0.x it should be just a dummy call.
> > For 4.1 it is included. What does change and is really uncool with 4.1
> > is that -fno-stack-protector-all is missing and wont be added
> > back without several somebodies making a case for it upstream.
> >
> 
> For the non technically minded folks whats the difference between 
> -fno-stack-protector and -fno-stack-protector-all?

It was explained to me like this:

-fno-stack-protector makes gcc use a heuristic to decide whether or not
change a function to use stack-smashing protection.

-fno-stack-protector-all makes gcc just do it for every function.

there is also:

-fno-stack-protector-to-all which if supplied makes -fno-stack-protector
get promoted to -fno-stack-protector-all. Apparently
-fno-stack-protector-to-all is on by default in all current gcc profiles
so that means that at the moment if you specify -fno-stack-protector you
really get -fno-stack-protector-all.

Hope that's clear! :-)

-- 
Duncan Coutts : Gentoo Developer (Haskell herd team lead)
email         : dcoutts at gentoo dot org

-- 
[email protected] mailing list

Reply via email to