svn commit: r233987 - stable/9/libexec/rtld-elf

Konstantin Belousov kib at FreeBSD.org
Sat Apr 7 05:43:51 UTC 2012


Author: kib
Date: Sat Apr  7 05:43:50 2012
New Revision: 233987
URL: http://svn.freebsd.org/changeset/base/233987

Log:
  MFC r233431:
  Remove libssp_nonshared from the rtld linking set. The only use for the
  library was definition for the weak alias of __stack_chk_fail.

Modified:
  stable/9/libexec/rtld-elf/Makefile
  stable/9/libexec/rtld-elf/rtld.c
Directory Properties:
  stable/9/libexec/rtld-elf/   (props changed)

Modified: stable/9/libexec/rtld-elf/Makefile
==============================================================================
--- stable/9/libexec/rtld-elf/Makefile	Sat Apr  7 05:42:37 2012	(r233986)
+++ stable/9/libexec/rtld-elf/Makefile	Sat Apr  7 05:43:50 2012	(r233987)
@@ -40,7 +40,7 @@ CFLAGS+=	-fpic
 CFLAGS+=	-DPIC $(DEBUG)
 LDFLAGS+=	-shared -Wl,-Bsymbolic
 DPADD=		${LIBC_PIC}
-LDADD=		-lc_pic -lssp_nonshared
+LDADD=		-lc_pic
 
 .if ${MK_SYMVER} == "yes"
 LIBCDIR=	${TOPSRCDIR}/lib/libc

Modified: stable/9/libexec/rtld-elf/rtld.c
==============================================================================
--- stable/9/libexec/rtld-elf/rtld.c	Sat Apr  7 05:42:37 2012	(r233986)
+++ stable/9/libexec/rtld-elf/rtld.c	Sat Apr  7 05:43:50 2012	(r233987)
@@ -4410,6 +4410,7 @@ __stack_chk_fail(void)
 	_rtld_error("stack overflow detected; terminated");
 	die();
 }
+__weak_reference(__stack_chk_fail, __stack_chk_fail_local);
 
 void
 __chk_fail(void)


More information about the svn-src-all mailing list