Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/stand/prekern Add an alignment to fill strict...



details:   https://anonhg.NetBSD.org/src/rev/9e7107406704
branches:  trunk
changeset: 827068:9e7107406704
user:      maxv <maxv%NetBSD.org@localhost>
date:      Wed Oct 11 16:13:16 2017 +0000

description:
Add an alignment to fill strictly all of the padding; does not increase
the size of the prekern.

diffstat:

 sys/arch/amd64/stand/prekern/prekern.ldscript |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 75dfb3c62449 -r 9e7107406704 sys/arch/amd64/stand/prekern/prekern.ldscript
--- a/sys/arch/amd64/stand/prekern/prekern.ldscript     Wed Oct 11 12:27:49 2017 +0000
+++ b/sys/arch/amd64/stand/prekern/prekern.ldscript     Wed Oct 11 16:13:16 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: prekern.ldscript,v 1.1 2017/10/10 09:29:14 maxv Exp $  */
+/*     $NetBSD: prekern.ldscript,v 1.2 2017/10/11 16:13:16 maxv Exp $  */
 
 __PAGE_SIZE = 0x1000 ;
 
@@ -10,6 +10,7 @@
                *(.text)
                *(.text.*)
                *(.stub)
+               . = ALIGN(__PAGE_SIZE);
        } =0xCC
        _etext = . ;
        PROVIDE (etext = .) ;



Home | Main Index | Thread Index | Old Index