Module Name: src Committed By: uebayasi Date: Thu Aug 20 11:42:57 UTC 2015
Modified Files: src/sys/arch/i386/conf: stand.ldscript Log Message: Do AT () relocation once. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/i386/conf/stand.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/stand.ldscript diff -u src/sys/arch/i386/conf/stand.ldscript:1.2 src/sys/arch/i386/conf/stand.ldscript:1.3 --- src/sys/arch/i386/conf/stand.ldscript:1.2 Thu Aug 20 07:00:48 2015 +++ src/sys/arch/i386/conf/stand.ldscript Thu Aug 20 11:42:56 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: stand.ldscript,v 1.2 2015/08/20 07:00:48 uebayasi Exp $ */ +/* $NetBSD: stand.ldscript,v 1.3 2015/08/20 11:42:56 uebayasi Exp $ */ OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") @@ -8,17 +8,15 @@ SECTIONS { /* Read-only sections, merged into text segment: */ .text : - AT (ADDR(.text) & 0x0fffffff) { *(.text) *(.text.*) *(.stub) - } =0 + } _etext = . ; PROVIDE (etext = .) ; .rodata : - AT (LOADADDR(.text) + (ADDR(.rodata) - ADDR(.text))) { *(.rodata) *(.rodata.*) @@ -26,17 +24,14 @@ SECTIONS __data_start = . ; .data : - AT (LOADADDR(.text) + (ADDR(.data) - ADDR(.text))) { *(.data) } .data.cacheline_aligned : - AT (LOADADDR(.text) + (ADDR(.data.cacheline_aligned) - ADDR(.text))) { *(.data.cacheline_aligned) } .data.read_mostly : - AT (LOADADDR(.text) + (ADDR(.data.read_mostly) - ADDR(.text))) { *(.data.read_mostly) } @@ -44,7 +39,6 @@ SECTIONS PROVIDE (edata = .) ; __bss_start = . ; .bss : - AT (LOADADDR(.text) + (ADDR(.bss) - ADDR(.text))) { *(.bss) *(.bss.*) @@ -62,3 +56,11 @@ SECTIONS *(.note.netbsd.ident) } } +SECTIONS +{ + .text : + AT (ADDR(.text) & 0x0fffffff) + { + *(.text) + } =0 +}