blob: 599546487e96de98ad5d8d44fcb92e2d975395bc [file] [log] [blame]
Stefan Kristiansson0e65f1a2011-11-26 19:04:55 +00001#include <config.h>
2OUTPUT_ARCH(or32)
3__DYNAMIC = 0;
4
5MEMORY
6{
7 vectors : ORIGIN = 0, LENGTH = 0x2000
8 ram : ORIGIN = CONFIG_SYS_MONITOR_BASE,
9 LENGTH = CONFIG_SYS_MONITOR_LEN
10}
11
12SECTIONS
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
Marek Vasut607092a2012-10-12 10:27:03 +000033 . = ALIGN(4);
34 .u_boot_list : {
35 #include <u-boot.lst>
36 }
37
Stefan Kristiansson0e65f1a2011-11-26 19:04:55 +000038 .rodata : {
39 *(.rodata);
40 *(.rodata.*)
41 } > ram
42
43 .shbss :
44 {
45 *(.shbss)
46 } > ram
47
48 .talias :
49 {
50 } > ram
51
52 .data : {
53 sdata = .;
54 _sdata = .;
55 *(.data)
56 edata = .;
57 _edata = .;
58 } > ram
59
60 .bss :
61 {
62 _bss_start = .;
63 *(.bss)
64 *(COMMON)
65 _bss_end = .;
66 } > ram
67 __end = .;
68
69 /* No stack specification - done manually */
70
71 .stab 0 (NOLOAD) :
72 {
73 [ .stab ]
74 }
75
76 .stabstr 0 (NOLOAD) :
77 {
78 [ .stabstr ]
79 }
80}