blob: 8ac646bc1a2bbd54e124b1f9e378c2867ddf68a6 [file] [log] [blame]
Jesper Nilsson14e61be2008-01-25 16:05:55 +01001/*#OUTPUT_FORMAT(elf32-us-cris) */
2OUTPUT_ARCH (crisv32)
3/* Now that NAND support has been stripped, this file could be simplified,
4 * but it doesn't do any harm on the other hand so why bother. */
5
Mikael Starvik51533b62005-07-27 11:44:44 -07006MEMORY
7 {
Jesper Nilsson14e61be2008-01-25 16:05:55 +01008 bootblk : ORIGIN = 0x38000000,
9 LENGTH = 0x00004000
10 intmem : ORIGIN = 0x38004000,
11 LENGTH = 0x00005000
Mikael Starvik51533b62005-07-27 11:44:44 -070012 }
13
14SECTIONS
15{
16 .text :
17 {
Jesper Nilsson14e61be2008-01-25 16:05:55 +010018 _stext = . ;
Mikael Starvik51533b62005-07-27 11:44:44 -070019 *(.text)
Jesper Nilsson14e61be2008-01-25 16:05:55 +010020 *(.init.text)
21 *(.rodata)
22 *(.rodata.*)
23 _etext = . ;
24 } > bootblk
Mikael Starvik51533b62005-07-27 11:44:44 -070025 .data :
26 {
27 *(.data)
Jesper Nilsson14e61be2008-01-25 16:05:55 +010028 _edata = . ;
29 } > bootblk
30 .bss :
31 {
32 _bss = . ;
33 *(.bss)
34 _end = ALIGN( 0x10 ) ;
35 } > intmem
36
37 /* Get rid of stuff from EXPORT_SYMBOL(foo). */
38 /DISCARD/ :
39 {
40 *(__ksymtab_strings)
41 *(__ksymtab)
42 }
Mikael Starvik51533b62005-07-27 11:44:44 -070043}