Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Xen therefore uses x86/db_memrw.c, as I suspected. ...
details: https://anonhg.NetBSD.org/src/rev/dafb8a7fc843
branches: trunk
changeset: 345212:dafb8a7fc843
user: maxv <maxv%NetBSD.org@localhost>
date: Fri May 13 05:45:13 2016 +0000
description:
Xen therefore uses x86/db_memrw.c, as I suspected. Define __rodata_start
in the Xen ld scripts, so that it can compile. We put the __rodata_start
definition right before __data_start, for it to appear as dead code, since
the rodata segment is not yet mapped independently on Xen.
diffstat:
sys/arch/amd64/conf/kern.ldscript.Xen | 3 ++-
sys/arch/i386/conf/kern.ldscript.Xen | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r df26d26b6744 -r dafb8a7fc843 sys/arch/amd64/conf/kern.ldscript.Xen
--- a/sys/arch/amd64/conf/kern.ldscript.Xen Fri May 13 02:00:36 2016 +0000
+++ b/sys/arch/amd64/conf/kern.ldscript.Xen Fri May 13 05:45:13 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern.ldscript.Xen,v 1.11 2016/05/12 06:57:55 maxv Exp $ */
+/* $NetBSD: kern.ldscript.Xen,v 1.12 2016/05/13 05:45:13 maxv Exp $ */
#include "assym.h"
@@ -24,6 +24,7 @@
*/
. = ALIGN(0x100000) + (. & (0x100000 - 1));
+ __rodata_start = . ;
__data_start = . ;
.data :
{
diff -r df26d26b6744 -r dafb8a7fc843 sys/arch/i386/conf/kern.ldscript.Xen
--- a/sys/arch/i386/conf/kern.ldscript.Xen Fri May 13 02:00:36 2016 +0000
+++ b/sys/arch/i386/conf/kern.ldscript.Xen Fri May 13 05:45:13 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern.ldscript.Xen,v 1.11 2016/05/12 06:57:55 maxv Exp $ */
+/* $NetBSD: kern.ldscript.Xen,v 1.12 2016/05/13 05:45:13 maxv Exp $ */
#include "assym.h"
@@ -28,6 +28,7 @@
*/
. = ALIGN(0x1000) + (. & (0x1000 - 1));
+ __rodata_start = . ;
__data_start = . ;
.data :
{
Home |
Main Index |
Thread Index |
Old Index