svn commit: r198304 - in stable/8/lib/libc: . gen stdio stdtime string sys

Peter Jeremy peterjeremy at acm.org
Sun Oct 25 07:27:41 UTC 2009


On 2009-Oct-24 22:24:00 -0400, Alexander Kabaev <kabaev at gmail.com> wrote:
>> bin/139052 discusses a related problem not addressed by r197277.
>> Any chance of looking into that?
>
>You are linking in a library compiled with -fstack-protector
>(libgcov) and do not pass -fstack-protector when running gcc with
>-fprofile-generator. Consequently, gcc does not link in necessary
>libssp_nonshared.a.

Well, that explains what is broken.

>Either you use stack protections or you do not. Please choose.

I haven't specified to use stack protection _anywhere_.  The system
defaults appear to have been changed so that libgcov is (by default)
built with stack protection enabled but gcc doesn't build with stack
protection enabled by default, leading to the breakage I reported.

This is a POLA violation at best and isn't documented anywhere.  If
world is going to be built with stack protection on by default then
the gcc defaults need to be adjusted to suit.  I bumped into this bug
whilst trying to build multimedia/x264 with PGO enabled.  I'm sure I'm
not the only person who is going to get bitten.

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20091025/3837f022/attachment.pgp


More information about the svn-src-all mailing list