]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/cris/kernel/vmlinux.lds.S
Merge branch 'for-2.6.39' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu...
[mirror_ubuntu-bionic-kernel.git] / arch / cris / kernel / 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 #include <asm/page.h>
13
14 #ifdef CONFIG_ETRAX_VMEM_SIZE
15 #define __CONFIG_ETRAX_VMEM_SIZE CONFIG_ETRAX_VMEM_SIZE
16 #else
17 #define __CONFIG_ETRAX_VMEM_SIZE 0
18 #endif
19
20
21 jiffies = jiffies_64;
22 SECTIONS
23 {
24 . = DRAM_VIRTUAL_BASE;
25 dram_start = .;
26 #ifdef CONFIG_ETRAX_ARCH_V10
27 ibr_start = .;
28 #else
29 ebp_start = .;
30 /* The boot section is only necessary until the VCS top */
31 /* level testbench includes both flash and DRAM. */
32 .boot : { *(.boot) }
33 #endif
34
35 /* see head.S and pages reserved at the start */
36 . = DRAM_VIRTUAL_BASE + 0x4000;
37
38 _text = .; /* Text and read-only data. */
39 text_start = .; /* Lots of aliases. */
40 _stext = .;
41 __stext = .;
42 .text : {
43 TEXT_TEXT
44 SCHED_TEXT
45 LOCK_TEXT
46 *(.fixup)
47 *(.text.__*)
48 }
49
50 _etext = . ; /* End of text section. */
51 __etext = .;
52
53 EXCEPTION_TABLE(4)
54
55 RODATA
56
57 . = ALIGN (4);
58 ___data_start = . ;
59 __Sdata = . ;
60 .data : { /* Data */
61 CACHELINE_ALIGNED_DATA(32)
62 READ_MOSTLY_DATA(32)
63 DATA_DATA
64 }
65 __edata = . ; /* End of data section. */
66 _edata = . ;
67
68 INIT_TASK_DATA_SECTION(PAGE_SIZE)
69
70 . = ALIGN(PAGE_SIZE); /* Init code and data. */
71 __init_begin = .;
72 INIT_TEXT_SECTION(PAGE_SIZE)
73 .init.data : { INIT_DATA }
74 .init.setup : { INIT_SETUP(16) }
75 .initcall.init : {
76 INIT_CALLS
77 }
78
79 .con_initcall.init : {
80 CON_INITCALL
81 }
82 SECURITY_INIT
83
84 /* .exit.text is discarded at runtime, not link time,
85 * to deal with references from __bug_table
86 */
87 .exit.text : {
88 EXIT_TEXT
89 }
90 .exit.data : {
91 EXIT_DATA
92 }
93
94 #ifdef CONFIG_ETRAX_ARCH_V10
95 #ifdef CONFIG_BLK_DEV_INITRD
96 .init.ramfs : {
97 __initramfs_start = .;
98 *(.init.ramfs)
99 __initramfs_end = .;
100 }
101 #endif
102 #endif
103 __vmlinux_end = .; /* Last address of the physical file. */
104 #ifdef CONFIG_ETRAX_ARCH_V32
105 PERCPU(32, PAGE_SIZE)
106
107 .init.ramfs : {
108 INIT_RAM_FS
109 }
110 #endif
111
112 /*
113 * We fill to the next page, so we can discard all init
114 * pages without needing to consider what payload might be
115 * appended to the kernel image.
116 */
117 . = ALIGN(PAGE_SIZE);
118
119 __init_end = .;
120
121 __data_end = . ; /* Move to _edata ? */
122 BSS_SECTION(1, 1, 1)
123
124 . = ALIGN (0x20);
125 _end = .;
126 __end = .;
127
128 dram_end = dram_start + (CONFIG_ETRAX_DRAM_SIZE - __CONFIG_ETRAX_VMEM_SIZE)*1024*1024;
129
130 DISCARDS
131 }