Stack protection breaks -fprofile-generate

Peter Jeremy peterjeremy at acm.org
Thu Sep 17 06:10:58 UTC 2009


Somewhere between early June and lastest 8.x, -fprofile-generate broke
on i386.  This looks to be related to stack protection.

$ echo 'int main() { return 0; }' > x.c
$ cc x.c
$ cc -fprofile-generate x.c         
/usr/lib/libgcov.a(_gcov.o)(.text+0x13df): In function `gcov_exit':
/usr/src/gnu/lib/libgcov/../../../contrib/gcc/libgcov.c:532: undefined reference to `__stack_chk_fail_local'

A friend reports that it works on amd64 from last weekend.

Has anyone else seen this?
-- 
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/freebsd-current/attachments/20090917/fadebfe6/attachment.pgp


More information about the freebsd-current mailing list