propolice only in gcc2

Tomaz Borstnar tomaz.borstnar at over.net
Tue Feb 17 20:50:36 PST 2004


Matthew Dillon pravi:
:Hello!
:
:	Few days ago I noticed that website mentions stack protection being 
:part of the system so I decided to check it on one of my test 
:machines... but looks like it is only part of gcc2:
:
:cc -O2 -pipe -fstack-protector -mcpu=pentiumpro -Wall    -c 
:/usr/src/games/fortune/strfile/strfile.c
:cc1: error: unrecognized option `-fstack-protector'
:
:(happened after setting CCVER=gcc3 in make.conf)
:
:
:
:Btw: propolice is very stable on FreeBSD 4.x and so far seems fine on 
:5.x as well.
:
:Tomaz

    Tomaz, you are right, the propolice patch is not being applied to
    GCC3 yet.  It's low priority right now,
true

there are other gcc3isms we
    have to get working first.
Yes, no problem with that. Maybe just update web page to let people know 
about this.

It should be noted that currently you can not build system with it:

===> gnu/lib/gcc3/csu
rm -f .depend
CC="cc" MKDEP_CPP_OPTS="-M -DCRT_BEGIN" mkdep -f .depend -a 
-I/usr/src/gnu/lib/gcc3/csu/../../../../contrib/gcc-3.3/gcc 
-I/usr/src/gnu/lib/gcc3/csu/../../../../contrib/gcc-3.3/gcc/config 
-I/usr/src/gnu/lib/gcc3/csu/../../../../contrib/gcc-3.3/include 
-I/usr/src/gnu/lib/gcc3/csu/../../../usr.bin/cc3/cc_tools 
-I/usr/src/gnu/lib/gcc3/csu/../../../usr.bin/cc3/config -I/gcc/config 
-I/usr/obj/usr/src/gnu/lib/gcc3/csu/../../../usr.bin/cc3/cc_tools 
-DIN_GCC 
/usr/src/gnu/lib/gcc3/csu/../../../../contrib/gcc-3.3/gcc/crtstuff.c
cc -O -pipe -fstack-protector 
-I/usr/src/gnu/lib/gcc3/csu/../../../../contrib/gcc-3.3/gcc 
-I/usr/src/gnu/lib/gcc3/csu/../../../../contrib/gcc-3.3/gcc/config 
-I/usr/src/gnu/lib/gcc3/csu/../../../../contrib/gcc-3.3/include 
-I/usr/src/gnu/lib/gcc3/csu/../../../usr.bin/cc3/cc_tools 
-I/usr/src/gnu/lib/gcc3/csu/../../../usr.bin/cc3/config  -I/gcc/config 
-I/usr/obj/usr/src/gnu/lib/gcc3/csu/../../../usr.bin/cc3/cc_tools 
-DIN_GCC  -finhibit-size-directive -fno-inline-functions 
-fno-exceptions -fno-omit-frame-pointer  -fno-zero-initialized-in-bss 
-g0 -DCRT_BEGIN  -c -o crtbegin.o 
/usr/src/gnu/lib/gcc3/csu/../../../../contrib/gcc-3.3/gcc/crtstuff.c
cc1: error: unrecognized option `-fstack-protector'
*** Error code 1

Stop in /usr/src/gnu/lib/gcc3/csu.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
1445.503u 394.377s 32:27.45 94.4%       108+209k 3844+1473io 853pf+0w
Tomaž





More information about the Kernel mailing list