On Wed, 30 Jun 2010, Anonymous wrote:

Doug Barton <do...@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_lo...@fbsd_1.0
   1605: 00000000000adf90    12 FUNC    GLOBAL DEFAULT   10 __stack_chk_fail
   2130: 00000000000adf90    12 FUNC    GLOBAL DEFAULT   10 
__stack_chk_fail_lo...@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_lo...@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_lo...@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

_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to