Stefan Kristiansson | f179cc6 | 2011-11-26 19:04:55 +0000 | [diff] [blame] | 1 | #include <config.h> |
Guillaume REMBERT | 87da269 | 2015-11-08 14:37:15 +0000 | [diff] [blame] | 2 | OUTPUT_ARCH(or1k) |
Stefan Kristiansson | f179cc6 | 2011-11-26 19:04:55 +0000 | [diff] [blame] | 3 | __DYNAMIC = 0; |
| 4 | |
| 5 | MEMORY |
| 6 | { |
| 7 | vectors : ORIGIN = 0, LENGTH = 0x2000 |
| 8 | ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, |
| 9 | LENGTH = CONFIG_SYS_MONITOR_LEN |
| 10 | } |
| 11 | |
| 12 | SECTIONS |
| 13 | { |
| 14 | .vectors : |
| 15 | { |
| 16 | *(.vectors) |
| 17 | } > vectors |
| 18 | |
| 19 | __start = .; |
| 20 | .text : AT (__start) { |
| 21 | _stext = .; |
| 22 | *(.text) |
| 23 | _etext = .; |
| 24 | *(.lit) |
| 25 | *(.shdata) |
| 26 | _endtext = .; |
| 27 | } > ram |
| 28 | |
Stefan Kristiansson | f179cc6 | 2011-11-26 19:04:55 +0000 | [diff] [blame] | 29 | |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 30 | . = ALIGN(4); |
| 31 | .u_boot_list : { |
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 32 | KEEP(*(SORT(.u_boot_list*))); |
Stefan Kristiansson | 16c5e5b | 2013-05-01 09:32:45 +0000 | [diff] [blame] | 33 | } > ram |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 34 | |
Stefan Kristiansson | f179cc6 | 2011-11-26 19:04:55 +0000 | [diff] [blame] | 35 | .rodata : { |
| 36 | *(.rodata); |
| 37 | *(.rodata.*) |
| 38 | } > ram |
| 39 | |
| 40 | .shbss : |
| 41 | { |
| 42 | *(.shbss) |
| 43 | } > ram |
| 44 | |
| 45 | .talias : |
| 46 | { |
| 47 | } > ram |
| 48 | |
| 49 | .data : { |
| 50 | sdata = .; |
| 51 | _sdata = .; |
| 52 | *(.data) |
| 53 | edata = .; |
| 54 | _edata = .; |
| 55 | } > ram |
| 56 | |
| 57 | .bss : |
| 58 | { |
| 59 | _bss_start = .; |
| 60 | *(.bss) |
| 61 | *(COMMON) |
| 62 | _bss_end = .; |
| 63 | } > ram |
| 64 | __end = .; |
| 65 | |
| 66 | /* No stack specification - done manually */ |
| 67 | |
| 68 | .stab 0 (NOLOAD) : |
| 69 | { |
| 70 | [ .stab ] |
| 71 | } |
| 72 | |
| 73 | .stabstr 0 (NOLOAD) : |
| 74 | { |
| 75 | [ .stabstr ] |
| 76 | } |
| 77 | } |