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 Use SUBALIGN, to force the alignment at ...
details: https://anonhg.NetBSD.org/src/rev/0336e967bcd7
branches: trunk
changeset: 357518:0336e967bcd7
user: maxv <maxv%NetBSD.org@localhost>
date: Mon Nov 13 20:01:48 2017 +0000
description:
Use SUBALIGN, to force the alignment at the section level, and remove
the inter-section ALIGN which doesn't do anything since the physical
address of the section is chosen dynamically by the bootloader.
diffstat:
sys/arch/amd64/conf/kern.ldscript.kaslr | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diffs (36 lines):
diff -r 2a11d872e05f -r 0336e967bcd7 sys/arch/amd64/conf/kern.ldscript.kaslr
--- a/sys/arch/amd64/conf/kern.ldscript.kaslr Mon Nov 13 19:24:32 2017 +0000
+++ b/sys/arch/amd64/conf/kern.ldscript.kaslr Mon Nov 13 20:01:48 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern.ldscript.kaslr,v 1.1 2017/11/09 15:46:48 maxv Exp $ */
+/* $NetBSD: kern.ldscript.kaslr,v 1.2 2017/11/13 20:01:48 maxv Exp $ */
#include "assym.h"
@@ -27,17 +27,16 @@
*(.data)
}
- . = ALIGN(COHERENCY_UNIT);
- .data.cacheline_aligned :
+ .data.cacheline_aligned : SUBALIGN(COHERENCY_UNIT)
{
*(.data.cacheline_aligned)
+ . = ALIGN(COHERENCY_UNIT);
}
- . = ALIGN(COHERENCY_UNIT);
- .data.read_mostly :
+ .data.read_mostly : SUBALIGN(COHERENCY_UNIT)
{
*(.data.read_mostly)
+ . = ALIGN(COHERENCY_UNIT);
}
- . = ALIGN(COHERENCY_UNIT);
_edata = . ;
PROVIDE (edata = .) ;
@@ -59,4 +58,3 @@
KEEP(*(.note.netbsd.ident));
}
}
-
Home |
Main Index |
Thread Index |
Old Index