Doug Barton <do...@freebsd.org> writes:

> nm libssp.so.0 | grep __stack_chk_fail_local
> 00000ac0 t __stack_chk_fail_local
>
> So I'm at a loss, and pretty close to throwing in the towel and going
> back to the base gcc for everything.

I'm not sure what FreeBSD version you're using 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 /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

  $ 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
_______________________________________________
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