Stefan Kristiansson | f179cc6 | 2011-11-26 19:04:55 +0000 | [diff] [blame] | 1 | #include <config.h> |
| 2 | OUTPUT_ARCH(or32) |
| 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 | |
| 29 | __u_boot_cmd_start = .; |
| 30 | .u_boot_cmd : { *(.u_boot_cmd) } > ram |
| 31 | __u_boot_cmd_end = .; |
| 32 | |
| 33 | .rodata : { |
| 34 | *(.rodata); |
| 35 | *(.rodata.*) |
| 36 | } > ram |
| 37 | |
| 38 | .shbss : |
| 39 | { |
| 40 | *(.shbss) |
| 41 | } > ram |
| 42 | |
| 43 | .talias : |
| 44 | { |
| 45 | } > ram |
| 46 | |
| 47 | .data : { |
| 48 | sdata = .; |
| 49 | _sdata = .; |
| 50 | *(.data) |
| 51 | edata = .; |
| 52 | _edata = .; |
| 53 | } > ram |
| 54 | |
| 55 | .bss : |
| 56 | { |
| 57 | _bss_start = .; |
| 58 | *(.bss) |
| 59 | *(COMMON) |
| 60 | _bss_end = .; |
| 61 | } > ram |
| 62 | __end = .; |
| 63 | |
| 64 | /* No stack specification - done manually */ |
| 65 | |
| 66 | .stab 0 (NOLOAD) : |
| 67 | { |
| 68 | [ .stab ] |
| 69 | } |
| 70 | |
| 71 | .stabstr 0 (NOLOAD) : |
| 72 | { |
| 73 | [ .stabstr ] |
| 74 | } |
| 75 | } |