summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-elf
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-11-22 09:37:31 +0000
committerkib <kib@FreeBSD.org>2016-11-22 09:37:31 +0000
commitc232728cc81fcdd747362e299e3ae0453d02326e (patch)
tree22a03528aa992f5809e1faf5884e24730eef2f06 /libexec/rtld-elf
parentfa7011d2748026ac5d125fc882bddef165fa8305 (diff)
downloadFreeBSD-src-c232728cc81fcdd747362e299e3ae0453d02326e.zip
FreeBSD-src-c232728cc81fcdd747362e299e3ae0453d02326e.tar.gz
MFC r308688:
Assert that there is no unresolved symbols during rtld linking.
Diffstat (limited to 'libexec/rtld-elf')
-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 b62bff0..7efe2f2 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}
OpenPOWER on IntegriCloud