Jörg Hohensohn | 6a4e4c8 | 2003-11-30 11:37:43 +0000 | [diff] [blame] | 1 | OUTPUT_FORMAT(elf32-sh) |
Jörg Hohensohn | 6a4e4c8 | 2003-11-30 11:37:43 +0000 | [diff] [blame] | 2 | |
| 3 | MEMORY |
| 4 | { |
| 5 | /* the boot ROM uses IRAM at 400-430, stay away and start at 500 */ |
| 6 | IRAM : ORIGIN = 0x0FFFF500, LENGTH = 0xA00 |
| 7 | /* and leave some room for stack at the end */ |
| 8 | } |
| 9 | |
| 10 | SECTIONS |
| 11 | { |
| 12 | .startvector : |
| 13 | { |
| 14 | *(.startvector) |
| 15 | . = ALIGN(0x4); |
| 16 | } > IRAM |
| 17 | |
| 18 | .text : |
| 19 | { |
| 20 | *(.text) |
Jens Arnold | e13e318 | 2008-10-30 00:17:45 +0000 | [diff] [blame] | 21 | *(.icode) |
Jörg Hohensohn | 6a4e4c8 | 2003-11-30 11:37:43 +0000 | [diff] [blame] | 22 | . = ALIGN(0x4); |
| 23 | } > IRAM |
| 24 | |
| 25 | .data : |
| 26 | { |
| 27 | *(.data) |
| 28 | } > IRAM |
| 29 | |
| 30 | .bss : |
| 31 | { |
| 32 | *(.bss) |
| 33 | } > IRAM |
| 34 | } |