blob: 854088b880a24507e835e008a1abe6a01d26fcf1 [file] [log] [blame]
Stefan Kristianssonf179cc62011-11-26 19:04:55 +00001#include <config.h>
Guillaume REMBERT87da2692015-11-08 14:37:15 +00002OUTPUT_ARCH(or1k)
Stefan Kristianssonf179cc62011-11-26 19:04:55 +00003__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*)));
Stefan Kristiansson16c5e5b2013-05-01 09:32:45 +000033 } > ram
Marek Vasut55675142012-10-12 10:27:03 +000034
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}