aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2016-11-15 09:40:03 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2016-11-15 09:40:03 +0000
commit4562cfc40ef4808b6fab98ddd77940a4b2053b11 (patch)
tree2b4ec00a03f95eb1d1200a5ca76d100c7102b0fd /libexec
parent093513c76b471360ff66d776f5e3d9ce1c1f7b39 (diff)
downloadsrc-4562cfc40ef4808b6fab98ddd77940a4b2053b11.tar.gz
src-4562cfc40ef4808b6fab98ddd77940a4b2053b11.zip
Assert that there is no unresolved symbols during rtld linking.
Reviewed by: emaste, jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week X-Differential revision: https://reviews.freebsd.org/D8448
Notes
Notes: svn path=/head/; revision=308688
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rtld-elf/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile
index b62bff056d57..7efe2f2cc929 100644
--- a/libexec/rtld-elf/Makefile
+++ b/libexec/rtld-elf/Makefile
@@ -47,7 +47,7 @@ CFLAGS+= -DPIC $(DEBUG)
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
CFLAGS+= -fvisibility=hidden
.endif
-LDFLAGS+= -shared -Wl,-Bsymbolic
+LDFLAGS+= -shared -Wl,-Bsymbolic -Wl,-z,defs
LIBADD= c_pic
.if ${MK_TOOLCHAIN} == "no"
LDFLAGS+= -L${LIBCDIR}