From owner-svn-soc-all@FreeBSD.ORG Wed Jul 9 12:05:28 2014 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5D8B2D59 for ; Wed, 9 Jul 2014 12:05:28 +0000 (UTC) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B83224C8 for ; Wed, 9 Jul 2014 12:05:28 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.8/8.14.8) with ESMTP id s69C5S5I016111 for ; Wed, 9 Jul 2014 12:05:28 GMT (envelope-from op@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.8/8.14.8/Submit) id s69C5RYS015997 for svn-soc-all@FreeBSD.org; Wed, 9 Jul 2014 12:05:27 GMT (envelope-from op@FreeBSD.org) Date: Wed, 9 Jul 2014 12:05:27 GMT Message-Id: <201407091205.s69C5RYS015997@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to op@FreeBSD.org using -f From: op@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r270650 - soc2014/op/freebsd-base/sys/conf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2014 12:05:28 -0000 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 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.*)