Subject: Re: USE_SSP=yes on netbsd-4 doesn't work with -static
To: None <firstname.lastname@example.org>
From: Christos Zoulas <email@example.com>
Date: 02/20/2007 19:42:26
In article <m1HJaWs-001dGZC@most.weird.com>,
Greg A. Woods <tech-toolchain@NetBSD.org> wrote:
>At Tue, 20 Feb 2007 02:55:50 +0000 (UTC),
>Christos Zoulas wrote:
>> Yes, SSP does not work on 4.0. We need to issue a whole bunch of pullups
>> if we want it to work.
>Ah ah. I see. So even though the link worked, there wouldn't be any
>actual extra protection in the resulting programs?
>Since USE_SSP is documented without warnings on the netbsd-4 branch, it
>sure would be nice for something to be done, preferrably the pullups to
>actually make it work of course. I should at least be able to do some
>testing if that'll help.
The culprit here is:
$ fgrep -r TARGET_LIBC_PROVIDES_SSP /usr/src/gnu/usr.bin/gcc4
/usr/src/gnu/usr.bin/gcc4/arch/i386/auto-host.h:#define TARGET_LIBC_PROVIDES_SSP 1
Which is set in current but not set in the 4.0 branch.