Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2018 19:58:24 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338274 - head/sys/conf
Message-ID:  <201808231958.w7NJwOoQ026776@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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}



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