Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Sep 2009 22:16:42 +1000
From:      Peter Jeremy <peterjeremy@acm.org>
To:        freebsd-current@freebsd.org
Subject:   Re: Stack protection breaks -fprofile-generate
Message-ID:  <20090917121642.GA1997@server.vk2pj.dyndns.org>
In-Reply-To: <20090917061054.GA48371@server.vk2pj.dyndns.org>
References:  <20090917061054.GA48371@server.vk2pj.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On 2009-Sep-17 16:10:54 +1000, Peter Jeremy <peterjeremy@acm.org> wrote:
>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'

Checking on 8.0-BETA4 from yesterday (about SVN rev 197239), it fails
on i386 and succeeds on amd4.  It looks suspiciously like this is
more fallout from r195697 but I'm not sure what the fix is.

-- 
Peter Jeremy

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (FreeBSD)

iEYEARECAAYFAkqyKKoACgkQ/opHv/APuIeE8QCgvfCT8gwYYHq4Ml7GCCUk5fVW
VAQAn3sWNacHMJpbEM1JI3aQ99ULXkn1
=EAB6
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090917121642.GA1997>