Subject: Re: problem with stack protector changes
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: current-users
Date: 11/09/2006 16:48:33
In article <slrnel5f1v.2qv.mason@g.primenet.com.au>,
Geoff Wing  <mason@primenet.com.au> wrote:
>Christos Zoulas <christos@astron.com> typed:
>: In article <slrnel5br6.d7o.mason@g.primenet.com.au>,
>: Geoff Wing  <mason@primenet.com.au> wrote:
>:>src/gnu/dist/gcc4/gcc/gcc.c has (with TARGET_LIBC_PROVIDES_SSP defined):
>                                                                ^ not
>:>#define LINK_SSP_SPEC
>:>"%{fstack-protector|fstack-protector-all:-lssp_nonshared -lssp}"
>:>
>:>so we need libssp_nonshared.* somewhere or the line changed if the
>:>functionality is provided anyway.
>:
>: No, make sure you rebuild the compiler.
>
>But the ssp functionality seems to be in libssp, not libc.  I'm confused.
>I'll look at it again later.
>
>So, do we now need the following change (or similar)?

Yes. This is true. The regression tests use fortify, so they need libssp.
I will fix it, thanks.

christos