Subject: bin/34731: gcc 4.1 in netbsd is crippled
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <elad@netbsd.org>
List: netbsd-bugs
Date: 10/06/2006 09:40:00
>Number: 34731
>Category: bin
>Synopsis: gcc 4.1 in netbsd is crippled
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 06 09:40:00 +0000 2006
>Originator: elad
>Release: windows xp
>Organization:
@!($#@!
>Environment:
>Description:
gcc 4.1 in netbsd -current does not support ssp. the man page says it does, but it's lying. if you try to use -fstack-protector or -fstack-protector-all, it will output errors.
this is a blocker issue for 4.0.
>How-To-Repeat:
gcc -fstack-protector
>Fix:
either use libssp from the gcc 4.1 distribution available under gpl with exception clause for linking (making it suitable for use in userland/kernel), or use the openbsd version available under bsd license and adjust the generation code in our gcc to also include the function name when reporting an error (that's better i think).