diff --git a/sys/arch/netwinder/conf/kern.ldscript b/sys/arch/netwinder/conf/kern.ldscript index 2b17ffab2116..7d62341d7e07 100644 --- a/sys/arch/netwinder/conf/kern.ldscript +++ b/sys/arch/netwinder/conf/kern.ldscript @@ -1,4 +1,4 @@ -/* $NetBSD: kern.ldscript,v 1.2 2002/04/11 21:48:46 thorpej Exp $ */ +/* $NetBSD: kern.ldscript,v 1.3 2003/06/11 21:49:40 uwe Exp $ */ OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") @@ -32,14 +32,14 @@ SECTIONS boundary. */ . = ALIGN(0x8000); .data : - AT ((LOADADDR(.text) + SIZEOF(.text) + (0x8000 - 1)) & ~(0x8000 - 1)) + AT (LOADADDR(.text) + (ADDR(.data) - ADDR(.text))) { __data_start = . ; *(.data) *(.data.*) } - .sdata : - AT (LOADADDR(.data) + SIZEOF(.data)) + .sdata : + AT (LOADADDR(.data) + (ADDR(.sdata) - ADDR(.data))) { *(.sdata) *(.sdata.*)