diff options
author | Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> | 2011-11-26 19:04:55 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2012-01-13 21:17:00 +0100 |
commit | f179cc648930305ed5476e3fe1b99f0baa899475 (patch) | |
tree | 38e4046aab48ce55060ba35ed718e7f1dad7edc8 /board/openrisc/openrisc-generic/u-boot.lds | |
parent | 3553493d8b4e402a737b80b04fab06f6e81bcb69 (diff) |
openrisc: Add openrisc-generic example board
Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Diffstat (limited to 'board/openrisc/openrisc-generic/u-boot.lds')
-rw-r--r-- | board/openrisc/openrisc-generic/u-boot.lds | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/board/openrisc/openrisc-generic/u-boot.lds b/board/openrisc/openrisc-generic/u-boot.lds new file mode 100644 index 0000000000..1aed197bb9 --- /dev/null +++ b/board/openrisc/openrisc-generic/u-boot.lds @@ -0,0 +1,75 @@ +#include <config.h> +OUTPUT_ARCH(or32) +__DYNAMIC = 0; + +MEMORY +{ + vectors : ORIGIN = 0, LENGTH = 0x2000 + ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, + LENGTH = CONFIG_SYS_MONITOR_LEN +} + +SECTIONS +{ + .vectors : + { + *(.vectors) + } > vectors + + __start = .; + .text : AT (__start) { + _stext = .; + *(.text) + _etext = .; + *(.lit) + *(.shdata) + _endtext = .; + } > ram + + __u_boot_cmd_start = .; + .u_boot_cmd : { *(.u_boot_cmd) } > ram + __u_boot_cmd_end = .; + + .rodata : { + *(.rodata); + *(.rodata.*) + } > ram + + .shbss : + { + *(.shbss) + } > ram + + .talias : + { + } > ram + + .data : { + sdata = .; + _sdata = .; + *(.data) + edata = .; + _edata = .; + } > ram + + .bss : + { + _bss_start = .; + *(.bss) + *(COMMON) + _bss_end = .; + } > ram + __end = .; + + /* No stack specification - done manually */ + + .stab 0 (NOLOAD) : + { + [ .stab ] + } + + .stabstr 0 (NOLOAD) : + { + [ .stabstr ] + } +} |