Module Name: src Committed By: maxv Date: Sat Nov 28 18:08:40 UTC 2015
Modified Files: src/sys/arch/i386/conf: kern.ldscript Log Message: KNF To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/arch/i386/conf/kern.ldscript Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/i386/conf/kern.ldscript diff -u src/sys/arch/i386/conf/kern.ldscript:1.15 src/sys/arch/i386/conf/kern.ldscript:1.16 --- src/sys/arch/i386/conf/kern.ldscript:1.15 Tue Aug 25 12:56:58 2015 +++ src/sys/arch/i386/conf/kern.ldscript Sat Nov 28 18:08:40 2015 @@ -1,68 +1,72 @@ -/* $NetBSD: kern.ldscript,v 1.15 2015/08/25 12:56:58 uebayasi Exp $ */ +/* $NetBSD: kern.ldscript,v 1.16 2015/11/28 18:08:40 maxv Exp $ */ #include "assym.h" ENTRY(_start) SECTIONS { - /* Read-only sections, merged into text segment: */ - .text : - { - *(.text) - *(.text.*) - *(.stub) - } - _etext = . ; - PROVIDE (etext = .) ; - - .rodata : - { - *(.rodata) - *(.rodata.*) - } - - /* Adjust the address for the data segment. We want to adjust up to - the same address within the page on the next page up. */ - . = ALIGN(0x1000) + (. & (0x1000 - 1)); - __data_start = . ; - .data : - { - *(.data) - } - . = ALIGN(COHERENCY_UNIT); - .data.cacheline_aligned : - { - *(.data.cacheline_aligned) - } - . = ALIGN(COHERENCY_UNIT); - .data.read_mostly : - { - *(.data.read_mostly) - } - . = ALIGN(COHERENCY_UNIT); - _edata = . ; - PROVIDE (edata = .) ; - __bss_start = . ; - .bss : - { - *(.bss) - *(.bss.*) - *(COMMON) - . = ALIGN(32 / 8); - } - . = ALIGN(32 / 8); - _end = . ; - PROVIDE (end = .) ; - .note.netbsd.ident : - { - KEEP(*(.note.netbsd.ident)); - } + /* Read-only sections, merged into text segment: */ + .text : + { + *(.text) + *(.text.*) + *(.stub) + } + _etext = . ; + PROVIDE (etext = .) ; + + .rodata : + { + *(.rodata) + *(.rodata.*) + } + + /* + * Adjust the address for the data segment. We want to adjust up to + * the same address within the page on the next page up. + */ + . = ALIGN(0x1000) + (. & (0x1000 - 1)); + __data_start = . ; + .data : + { + *(.data) + } + + . = ALIGN(COHERENCY_UNIT); + .data.cacheline_aligned : + { + *(.data.cacheline_aligned) + } + . = ALIGN(COHERENCY_UNIT); + .data.read_mostly : + { + *(.data.read_mostly) + } + . = ALIGN(COHERENCY_UNIT); + _edata = . ; + PROVIDE (edata = .) ; + __bss_start = . ; + .bss : + { + *(.bss) + *(.bss.*) + *(COMMON) + . = ALIGN(32 / 8); + } + . = ALIGN(32 / 8); + _end = . ; + PROVIDE (end = .) ; + .note.netbsd.ident : + { + KEEP(*(.note.netbsd.ident)); + } } + SECTIONS { - .text : - AT (ADDR(.text) & 0x0fffffff) - { - *(.text) - } =0 + .text : + AT (ADDR(.text) & 0x0fffffff) + { + *(.text) + } = 0 }