Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
[linux-drm-fsl-dcu.git] / arch / cris / arch-v32 / vmlinux.lds.S
1 /* ld script to make the Linux/CRIS kernel
2  * Authors: Bjorn Wesen (bjornw@axis.com)
3  *
4  * It is VERY DANGEROUS to fiddle around with the symbols in this
5  * script. It is for example quite vital that all generated sections
6  * that are used are actually named here, otherwise the linker will
7  * put them at the end, where the init stuff is which is FREED after
8  * the kernel has booted.
9  */
10
11 #include <asm-generic/vmlinux.lds.h>
12
13 jiffies = jiffies_64;
14 SECTIONS
15 {
16         . = DRAM_VIRTUAL_BASE;
17         dram_start = .;
18         ebp_start = .;
19
20         /* The boot section is only necessary until the VCS top level testbench */
21         /* includes both flash and DRAM. */
22         .boot : { *(.boot) }
23
24         . = DRAM_VIRTUAL_BASE + 0x4000;         /* See head.S and pages reserved at the start. */
25
26         _text = .;              /* Text and read-only data. */
27         text_start = .;         /* Lots of aliases. */
28         _stext = .;
29         __stext = .;
30         .text : {
31                 *(.text)
32                 SCHED_TEXT
33                 LOCK_TEXT
34                 *(.fixup)
35                 *(.text.__*)
36         }
37
38         _etext = . ;            /* End of text section. */
39         __etext = .;
40
41         . = ALIGN(4);           /* Exception table. */
42         __start___ex_table = .;
43         __ex_table : { *(__ex_table) }
44         __stop___ex_table = .;
45
46         RODATA
47
48         . = ALIGN (4);
49         ___data_start = . ;
50         __Sdata = . ;
51         .data : {                     /* Data */
52                 *(.data)
53         }
54         __edata = . ;           /* End of data section. */
55         _edata = . ;
56
57         . = ALIGN(8192);        /* init_task and stack, must be aligned. */
58         .data.init_task : { *(.data.init_task) }
59
60         . = ALIGN(8192);        /* Init code and data. */
61         __init_begin = .;
62         .init.text : {
63                    _sinittext = .;
64                    *(.init.text)
65                    _einittext = .;
66         }
67         .init.data : { *(.init.data) }
68         . = ALIGN(16);
69         __setup_start = .;
70         .init.setup : { *(.init.setup) }
71         __setup_end = .;
72         __start___param = .;
73         __param : { *(__param) }
74         __stop___param = .;
75         .initcall.init : {
76                 __initcall_start = .;
77                 *(.initcall1.init);
78                 *(.initcall2.init);
79                 *(.initcall3.init);
80                 *(.initcall4.init);
81                 *(.initcall5.init);
82                 *(.initcall6.init);
83                 *(.initcall7.init);
84                 __initcall_end = .;
85         }
86
87         .con_initcall.init : {
88                 __con_initcall_start = .;
89                 *(.con_initcall.init)
90                 __con_initcall_end = .;
91         }
92         SECURITY_INIT
93
94         __per_cpu_start = .;
95         .data.percpu  : { *(.data.percpu) }
96         __per_cpu_end = .;
97
98 #ifdef CONFIG_BLK_DEV_INITRD
99         .init.ramfs : {
100                 __initramfs_start = .;
101                 *(.init.ramfs)
102                 __initramfs_end = .;
103                 /*
104                  * We fill to the next page, so we can discard all init
105                  * pages without needing to consider what payload might be
106                  * appended to the kernel image.
107                  */
108                 FILL (0);
109                 . = ALIGN (8192);
110         }
111 #endif
112
113         __vmlinux_end = .;      /* Last address of the physical file. */
114         __init_end = .;
115
116         __data_end = . ;        /* Move to _edata? */
117         __bss_start = .;        /* BSS. */
118         .bss : {
119                 *(COMMON)
120                 *(.bss)
121         }
122
123         . =  ALIGN (0x20);
124         _end = .;
125         __end = .;
126
127         /* Sections to be discarded */
128         /DISCARD/ : {
129                 *(.text.exit)
130                 *(.data.exit)
131                 *(.exitcall.exit)
132         }
133
134         dram_end = dram_start + CONFIG_ETRAX_DRAM_SIZE*1024*1024;
135 }