1 /* $NetBSD: ldscript,v 1.4 2005/12/11 12:17:10 christos Exp $ */
7 /* We will locate the .text section in flash, and will run directly
8 from there just long enough to relocate our .text and .data into
9 a small chunk of SDRAM starting at (SDRAM + 1M). */
10 flash : o = 0x00140000, l = 2816K /* 4M total flash */
11 sdram : o = 0xc0100000, l = 1M /* kernel loads at 0xc0200000 */
17 /* Read-only sections, merged into text segment: */
25 *(.glue_7t) *(.glue_7)
26 *(.rodata) *(.rodata.*)
28 PROVIDE (__etext = .);
31 __data_store = FLASH + SIZEOF(.text);
33 AT (LOADADDR(.text) + SIZEOF(.text))
40 AT (LOADADDR(.data) + SIZEOF(.data))
53 PROVIDE (__sbss_start = .);
54 PROVIDE (___sbss_start = .);
59 PROVIDE (__sbss_end = .);
60 PROVIDE (___sbss_end = .);
69 /* Align here to ensure that the .bss section occupies space up to
70 _end. Align after .bss to ensure correct alignment even if the
71 .bss section disappears because there are no input sections. */
76 _bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
78 .image (FLASH + SIZEOF(.text) + SIZEOF(.data) + SIZEOF(.sdata)) :
79 AT (LOADADDR(.sdata) + SIZEOF(.sdata))