blob: 9024f30b30f605fa14abfae72ba630cadd371e28 [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 : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000032 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000033 }
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}