Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jul 2014 12:05:27 GMT
From:      op@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r270650 - soc2014/op/freebsd-base/sys/conf
Message-ID:  <201407091205.s69C5RYS015997@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: op
Date: Wed Jul  9 12:05:27 2014
New Revision: 270650
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=270650

Log:
  KSP: added elf sections to ldscript.amd64
  
  git: https://github.com/opntr/opBSD/tree/op/gsoc2014/kpatch
  
  Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
  
  

Modified:
  soc2014/op/freebsd-base/sys/conf/ldscript.amd64

Modified: soc2014/op/freebsd-base/sys/conf/ldscript.amd64
==============================================================================
--- soc2014/op/freebsd-base/sys/conf/ldscript.amd64	Wed Jul  9 11:41:32 2014	(r270649)
+++ soc2014/op/freebsd-base/sys/conf/ldscript.amd64	Wed Jul  9 12:05:27 2014	(r270650)
@@ -30,6 +30,10 @@
   .rela.data      : { *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) }
   .rel.tdata	  : { *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) }
   .rela.tdata	  : { *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) }
+  .rel.set_ksp_kpatch_set		: { *(.rel.set_ksp_kpatch_set) }
+  .rela.set_ksp_kpatch_set		: { *(.rela.set_ksp_kpatch_set) }
+  .rel.set_ksp_kpatch_patch_set		: { *(.rel.set_ksp_kpatch_patch_set) }
+  .rela.set_ksp_kpatch_patch_set	: { *(.rela.set_ksp_kpatch_patch_set) }
   .rel.tbss	  : { *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) }
   .rela.tbss	  : { *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) }
   .rel.ctors      : { *(.rel.ctors) }
@@ -140,6 +144,18 @@
   .got            : { *(.got) }
   . = DATA_SEGMENT_RELRO_END (24, .);
   .got.plt        : { *(.got.plt) }
+  set_ksp_kpatch_set   :
+  {
+    PROVIDE ( __start_set_ksp_kpatch_set = . );
+    KEEP (*(set_ksp_kpatch_set));
+    PROVIDE ( __stop_set_ksp_kpatch_set = . );
+  }
+  set_ksp_kpatch_patch_set     :
+  {
+    PROVIDE ( __start_set_ksp_kpatch_patch_set = . );
+    KEEP (*(set_ksp_kpatch_patch_set));
+    PROVIDE ( __stop_set_ksp_kpatch_patch_set = . );
+  }
   .data           :
   {
     *(.data .data.* .gnu.linkonce.d.*)



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