On 2008-Jun-25 21:33:28 +0000, Ruslan Ermilov <[email protected]> wrote:
>  Enable GCC stack protection (aka Propolice) for userland:
...

I realise this is very late but this seems to break profiling, at
least on i386 (see http://cakebox.homeunix.net/wordpress/?p=109 and
bin/139052).  Based on a response from kan@, the problem is that
libgcov.a is built with SSP enabled but gcc defaults to SSP disabled.
r197277 added a work-around for dynamic linking but profiling implies
static linking.

IMO, it is unreasonable for an end-user to have to change compilation
flags depending on whether FreeBSD was built with or without SSP.  One
solution would seem to be to embed libssp_nonshared.a into all non-
shared libraries when the world is built using SSP.

-- 
Peter Jeremy

Attachment: pgpp771OEHBba.pgp
Description: PGP signature

Reply via email to