Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Nov 2016 09:40:04 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r308688 - head/libexec/rtld-elf
Message-ID:  <201611150940.uAF9e4bf082506@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Tue Nov 15 09:40:03 2016
New Revision: 308688
URL: https://svnweb.freebsd.org/changeset/base/308688

Log:
  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

Modified:
  head/libexec/rtld-elf/Makefile

Modified: head/libexec/rtld-elf/Makefile
==============================================================================
--- head/libexec/rtld-elf/Makefile	Tue Nov 15 09:37:35 2016	(r308687)
+++ head/libexec/rtld-elf/Makefile	Tue Nov 15 09:40:03 2016	(r308688)
@@ -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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611150940.uAF9e4bf082506>