1 /* $NetBSD: ldscript,v 1.3 2005/12/11 12:17:11 christos Exp $ */
3 OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm",
11 /* We will locate the .text section in flash, and will run directly
12 from there just long enough to relocate our .text and .data into
13 a small chunk of SDRAM starting at (SDRAM + 1M). */
14 flash : o = 0x00000000, l = 16M
15 sdram : o = 0x08000000, l = 1M /* kernel loads at 0x08200000 */
23 /* Read-only sections, merged into text segment: */
24 /* __text_store = FLASH; */
29 __text_store = . - SDRAM;
33 *(.glue_7t) *(.glue_7)
34 *(.rodata) *(.rodata.*)
36 PROVIDE (__etext = .);
39 __data_store = FLASH + SIZEOF(.text);
41 AT (LOADADDR(.text) + SIZEOF(.text))
48 AT (LOADADDR(.data) + SIZEOF(.data))
61 PROVIDE (__sbss_start = .);
62 PROVIDE (___sbss_start = .);
67 PROVIDE (__sbss_end = .);
68 PROVIDE (___sbss_end = .);
77 /* Align here to ensure that the .bss section occupies space up to
78 _end. Align after .bss to ensure correct alignment even if the
79 .bss section disappears because there are no input sections. */
84 _bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
86 /* .image (FLASH + SIZEOF(.text) + SIZEOF(.data) + SIZEOF(.sdata)) : */
87 .image (FLASH + SIZEOF(.text) + SIZEOF(.data) + SIZEOF(.sdata)) :
88 AT (LOADADDR(.sdata) + SIZEOF(.sdata))
93 __rom_size__ = LOADADDR(.image) + SIZEOF(.image);