lkml.org 
[lkml]   [2006]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [patch 5/5] Add the -fstack-protector option to the CFLAGS
    From
    From: Valdis.Kletnieks@vt.edu
    Date: Fri, 28 Jul 2006 19:05:40 -0400

    > On Fri, 28 Jul 2006 20:48:31 +0200, Arjan van de Ven said:
    > > On Fri, 2006-07-28 at 20:45 +0200, Andi Kleen wrote:
    > > > > +ifdef CONFIG_CC_STACKPROTECTOR
    > > > > +CFLAGS += $(call cc-ifversion, -lt, 0402, -fno-stack-protector)
    > > > > +CFLAGS += $(call cc-ifversion, -ge, 0402, -fstack-protector)
    > > >
    > > > Why can't you just use the normal call cc-option for this?
    > >
    > > this requires gcc 4.2; cc-option is not useful for that.
    >
    > At least some things calling themselves 4.1.1 include it. On a Fedora

    Your gcc-4.1.1 includes the -fstack-protector feature, but it might
    not have the gcc bug fix necessary to make that feature work on the
    kernel compile, which is why the version check is necessary.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-07-29 01:15    [W:0.019 / U:0.708 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site