svn commit: r338274 - head/sys/conf

Mark Johnston markj at FreeBSD.org
Thu Aug 23 19:58:25 UTC 2018


Author: markj
Date: Thu Aug 23 19:58:24 2018
New Revision: 338274
URL: https://svnweb.freebsd.org/changeset/base/338274

Log:
  Configure -zifunc-noplt for amd64 kernels.
  
  Per r338251, this ensures that ifunc calls have the same ordinary
  function calls.
  
  Reviewed by:	emaste (previous version)
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D16750

Modified:
  head/sys/conf/kern.pre.mk

Modified: head/sys/conf/kern.pre.mk
==============================================================================
--- head/sys/conf/kern.pre.mk	Thu Aug 23 19:10:45 2018	(r338273)
+++ head/sys/conf/kern.pre.mk	Thu Aug 23 19:58:24 2018	(r338274)
@@ -125,7 +125,7 @@ LDFLAGS+=	-Wl,--build-id=sha1
 .if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mifunc} == ""
 .error amd64 kernel requires linker ifunc support
 .endif
-LDFLAGS+=	-Wl,-z max-page-size=2097152 -Wl,-z common-page-size=4096
+LDFLAGS+=	-Wl,-z max-page-size=2097152 -Wl,-z common-page-size=4096 -Wl,-z -Wl,ifunc-noplt
 .endif
 
 NORMAL_C= ${CC} -c ${CFLAGS} ${WERROR} ${PROF} ${.IMPSRC}


More information about the svn-src-all mailing list