blob: 4cffacbd46ab953a0dbdc2d82ca3b2e164d132af [file] [log] [blame]
Stefan Kristianssonf179cc62011-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
Stefan Kristianssonf179cc62011-11-26 19:04:55 +000029
Marek Vasut55675142012-10-12 10:27:03 +000030 . = ALIGN(4);
31 .u_boot_list : {
32 #include <u-boot.lst>
33 }
34
Stefan Kristianssonf179cc62011-11-26 19:04:55 +000035 .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}