]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/openrisc/openrisc-generic/u-boot.lds
common: Add .u_boot_list into all linker files
[karo-tx-uboot.git] / board / openrisc / openrisc-generic / u-boot.lds
1 #include <config.h>
2 OUTPUT_ARCH(or32)
3 __DYNAMIC  =  0;
4
5 MEMORY
6 {
7         vectors : ORIGIN = 0, LENGTH = 0x2000
8         ram     : ORIGIN = CONFIG_SYS_MONITOR_BASE,
9                   LENGTH = CONFIG_SYS_MONITOR_LEN
10 }
11
12 SECTIONS
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
33          . = ALIGN(4);
34          .u_boot_list : {
35         #include <u-boot.lst>
36          }
37
38         .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 }