Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Sep 2020 13:51:47 +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: r365796 - head/sys/conf
Message-ID:  <202009161351.08GDplfc041218@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Wed Sep 16 13:51:47 2020
New Revision: 365796
URL: https://svnweb.freebsd.org/changeset/base/365796

Log:
  Move PLTs to the beginning of amd64 kernel modules.
  
  As with .text, the aim is to ensure that executable sections are
  segregated from the rest, to avoid creation of writeable and executable
  mappings.  Recent versions of LLVM emit a PLT in firmware modules.
  
  Reviewed by:	kib
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D26444

Modified:
  head/sys/conf/ldscript.kmod.amd64

Modified: head/sys/conf/ldscript.kmod.amd64
==============================================================================
--- head/sys/conf/ldscript.kmod.amd64	Wed Sep 16 13:46:58 2020	(r365795)
+++ head/sys/conf/ldscript.kmod.amd64	Wed Sep 16 13:51:47 2020	(r365796)
@@ -34,6 +34,10 @@
 
 SECTIONS
 {
+	.plt		:
+	{
+		*(.plt)
+	}
 	.text		:
 	{
 		*(.text .text.*)



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