Date: Wed, 30 Jun 2010 18:49:00 -0700 (PDT) From: Doug Barton <dougb@FreeBSD.org> To: Anonymous <swell.k@gmail.com> Cc: dinoex@FreeBSD.org, ports@FreeBSD.org Subject: Re: graphics/png does not compile with gcc 4.5.1 Message-ID: <alpine.BSF.2.00.1006301843030.65452@qbhto.arg> In-Reply-To: <86wrthym39.fsf@gmail.com> References: <alpine.BSF.2.00.1006290952200.23004@qbhto.arg> <86zkydcl1e.fsf@gmail.com> <4C2AB9E4.4030200@FreeBSD.org> <alpine.BSF.2.00.1006292034400.51161@qbhto.arg> <alpine.BSF.2.00.1006292331380.62662@qbhto.arg> <86wrthym39.fsf@gmail.com>
index | next in thread | previous in thread | raw e-mail
On Wed, 30 Jun 2010, Anonymous wrote:
> Doug Barton <dougb@FreeBSD.org> writes:
>
>> nm libssp.so.0 | grep __stack_chk_fail_local
>> 00000ac0 t __stack_chk_fail_local
>
> I'm not sure what FreeBSD version you're using
-current, and I update just about every day. I tried upgrading -current
with a clean /usr/obj today (r209614) and a totally stripped down
everything (make.conf, loader.conf, etc.) to get as stock as possible,
then I recompiled gcc 4.5.1 again, still no joy.
> but I have
> __stack_chk_fail_local alias in libc.
>
> $ readelf -s $LOCALBASE/lib/gcc45/libssp.so.0 | fgrep __stack_chk_fail
> 11: 0000000000000c80 24 FUNC GLOBAL DEFAULT 8 __stack_chk_fail@@LIBSSP_1.0
> 51: 0000000000000cc0 5 FUNC LOCAL HIDDEN 8 __stack_chk_fail_local
> 68: 0000000000000c80 24 FUNC GLOBAL DEFAULT 8 __stack_chk_fail
readelf -s /usr/local/lib/gcc45/libssp.so.0 | fgrep __stack_chk_fail
12: 00000a40 50 FUNC GLOBAL DEFAULT 10
__stack_chk_fail@@LIBSSP_1.0
74: 00000ac0 30 FUNC LOCAL HIDDEN 10 __stack_chk_fail_local
95: 00000a40 50 FUNC GLOBAL DEFAULT 10 __stack_chk_fail
> $ readelf -s /lib/libc.so.7 | fgrep __stack_chk_fail
> 989: 00000000000adf90 12 FUNC GLOBAL DEFAULT 10 __stack_chk_fail@@FBSD_1.0
> 1514: 00000000000adf90 12 FUNC GLOBAL DEFAULT 10 __stack_chk_fail_local@FBSD_1.0
> 1605: 00000000000adf90 12 FUNC GLOBAL DEFAULT 10 __stack_chk_fail
> 2130: 00000000000adf90 12 FUNC GLOBAL DEFAULT 10 __stack_chk_fail_local@FB
readelf -s /lib/libc.so.7 | fgrep __stack_chk_fail
952: 00028060 26 FUNC GLOBAL DEFAULT 10
__stack_chk_fail@@FBSD_1.0
1457: 00028060 26 FUNC GLOBAL DEFAULT 10
__stack_chk_fail_local@FBSD_1.0
45: 000ecec0 29 FUNC LOCAL HIDDEN 10 __stack_chk_fail_local
1542: 00028060 26 FUNC GLOBAL DEFAULT 10 __stack_chk_fail
2047: 00028060 26 FUNC GLOBAL DEFAULT 10
__stack_chk_fail_local@FB
> $ fgrep __stack_chk_fail_local -r lib/libc -C2
> lib/libc/sys/stack_protector.c-
> lib/libc/sys/stack_protector.c-#ifdef PIC
> lib/libc/sys/stack_protector.c:__sym_compat(__stack_chk_fail_local, __stack_chk_fail, FBSD_1.0);
> lib/libc/sys/stack_protector.c-#else
> lib/libc/sys/stack_protector.c:__weak_reference(__stack_chk_fail, __stack_chk_fail_local);
> lib/libc/sys/stack_protector.c-#endif
fgrep __stack_chk_fail_local -r lib/libc -C2 | grep -v \.svn
--
lib/libc/sys/stack_protector.c-
lib/libc/sys/stack_protector.c-#ifdef PIC
lib/libc/sys/stack_protector.c:__sym_compat(__stack_chk_fail_local,
__stack_chk_fail, FBSD_1.0);
lib/libc/sys/stack_protector.c-#else
lib/libc/sys/stack_protector.c:__weak_reference(__stack_chk_fail,
__stack_chk_fail_local);
lib/libc/sys/stack_protector.c-#endif
--
Improve the effectiveness of your Internet presence with
a domain name makeover! http://SupersetSolutions.com/
Computers are useless. They can only give you answers.
-- Pablo Picasso
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1006301843030.65452>
