aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2012-03-24 19:14:44 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2012-03-24 19:14:44 +0000
commit2aa3a467290d5dc74f9a94bb50147f3cfa3865ea (patch)
tree4512f1ef5bc48bf2c6231eb94521ebf6365fe33b /libexec
parent83dd1777618ba768de4e0e23202ff2af1678163e (diff)
downloadsrc-2aa3a467290d5dc74f9a94bb50147f3cfa3865ea.tar.gz
src-2aa3a467290d5dc74f9a94bb50147f3cfa3865ea.zip
Remove libssp_nonshared from the rtld linking set. The only use for the
library was definition for the weak alias of __stack_chk_fail. No objections from: kan MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=233431
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rtld-elf/Makefile2
-rw-r--r--libexec/rtld-elf/rtld.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile
index 7a7bb7faf4a1..80737e8c4409 100644
--- a/libexec/rtld-elf/Makefile
+++ b/libexec/rtld-elf/Makefile
@@ -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
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
index b3d3329366d8..e081e0984613 100644
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -4390,6 +4390,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)