1 /* $NetBSD: ldscript,v 1.6 2005/12/11 12:17:10 christos Exp $ */
3 OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm",
9 /* We will locate the .text section in flash, and will run directly
10 from there just long enough to relocate our .text and .data into
11 a small chunk of SDRAM starting at (SDRAM + 1M). */
12 flash : o = 0xf0080000, l = 6M
13 sdram : o = 0xa0100000, l = 1M /* kernel loads at 0xa0200000 */
19 /* Read-only sections, merged into text segment: */
27 *(.glue_7t) *(.glue_7)
28 *(.rodata) *(.rodata.*)
30 PROVIDE (__etext = .);
33 __data_store = FLASH + SIZEOF(.text);
35 AT (LOADADDR(.text) + SIZEOF(.text))
42 AT (LOADADDR(.data) + SIZEOF(.data))
55 PROVIDE (__sbss_start = .);
56 PROVIDE (___sbss_start = .);
61 PROVIDE (__sbss_end = .);
62 PROVIDE (___sbss_end = .);
71 /* Align here to ensure that the .bss section occupies space up to
72 _end. Align after .bss to ensure correct alignment even if the
73 .bss section disappears because there are no input sections. */
78 _bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
80 .image (FLASH + SIZEOF(.text) + SIZEOF(.data) + SIZEOF(.sdata)) :
81 AT (LOADADDR(.sdata) + SIZEOF(.sdata))