Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amd64/conf update Xen ldscript to add kASan .ctors ...



details:   https://anonhg.NetBSD.org/src/rev/0a8890901676
branches:  trunk
changeset: 1010286:0a8890901676
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Thu May 21 09:36:24 2020 +0000

description:
update Xen ldscript to add kASan .ctors section, so that Xen kernel with
enabled KASAN option at least compiles; no promises on it actually working
though

diffstat:

 sys/arch/amd64/conf/kern.ldscript.Xen |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 9e81f6256485 -r 0a8890901676 sys/arch/amd64/conf/kern.ldscript.Xen
--- a/sys/arch/amd64/conf/kern.ldscript.Xen     Thu May 21 09:24:17 2020 +0000
+++ b/sys/arch/amd64/conf/kern.ldscript.Xen     Thu May 21 09:36:24 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern.ldscript.Xen,v 1.16 2018/06/24 18:24:53 maxv Exp $        */
+/*     $NetBSD: kern.ldscript.Xen,v 1.17 2020/05/21 09:36:24 jdolecek Exp $    */
 
 #include "assym.h"
 
@@ -32,6 +32,10 @@
        {
                *(.rodata)
                *(.rodata.*)
+               . = ALIGN(COHERENCY_UNIT);
+               __CTOR_LIST__ = .;
+               *(.ctors)
+               __CTOR_END__ = .;
        }
 
        . = ALIGN(__PAGE_SIZE);



Home | Main Index | Thread Index | Old Index