1 /* $NetBSD: ldscript,v 1.1 2008/10/30 06:23:13 cliff 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 gzboot : o = 0x01600000, l = 6M
13 sdram : o = 0x00200000, l = 2M /* kernel loads at 0x00200000 */
19 /* Read-only sections, merged into text segment: */
20 __text_store = GZBOOT;
27 *(.glue_7t) *(.glue_7)
28 *(.rodata) *(.rodata.*)
30 PROVIDE (__etext = .);
33 __data_store = GZBOOT + 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__ = . ;