aboutsummaryrefslogtreecommitdiffstats
path: root/arch/frv/kernel/vmlinux.lds.S
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/frv/kernel/vmlinux.lds.S
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'arch/frv/kernel/vmlinux.lds.S')
-rw-r--r--arch/frv/kernel/vmlinux.lds.S187
1 files changed, 187 insertions, 0 deletions
diff --git a/arch/frv/kernel/vmlinux.lds.S b/arch/frv/kernel/vmlinux.lds.S
new file mode 100644
index 000000000000..fceafd2cc202
--- /dev/null
+++ b/arch/frv/kernel/vmlinux.lds.S
@@ -0,0 +1,187 @@
1/* ld script to make FRV Linux kernel
2 * Written by Martin Mares <mj@atrey.karlin.mff.cuni.cz>;
3 */
4OUTPUT_FORMAT("elf32-frv", "elf32-frv", "elf32-frv")
5OUTPUT_ARCH(frv)
6ENTRY(_start)
7
8#include <asm-generic/vmlinux.lds.h>
9#include <asm/processor.h>
10#include <asm/page.h>
11#include <asm/cache.h>
12#include <asm/thread_info.h>
13
14jiffies = jiffies_64 + 4;
15
16__page_offset = 0xc0000000; /* start of area covered by struct pages */
17__kernel_image_start = __page_offset; /* address at which kernel image resides */
18
19SECTIONS
20{
21 . = __kernel_image_start;
22
23 /* discardable initialisation code and data */
24 . = ALIGN(PAGE_SIZE); /* Init code and data */
25 __init_begin = .;
26
27 _sinittext = .;
28 .init.text : {
29 *(.text.head)
30#ifndef CONFIG_DEBUG_INFO
31 *(.init.text)
32 *(.exit.text)
33 *(.exit.data)
34 *(.exitcall.exit)
35#endif
36 }
37 _einittext = .;
38 .init.data : { *(.init.data) }
39
40 . = ALIGN(8);
41 __setup_start = .;
42 .setup.init : { KEEP(*(.init.setup)) }
43 __setup_end = .;
44
45 __initcall_start = .;
46 .initcall.init : {
47 *(.initcall1.init)
48 *(.initcall2.init)
49 *(.initcall3.init)
50 *(.initcall4.init)
51 *(.initcall5.init)
52 *(.initcall6.init)
53 *(.initcall7.init)
54 }
55 __initcall_end = .;
56 __con_initcall_start = .;
57 .con_initcall.init : { *(.con_initcall.init) }
58 __con_initcall_end = .;
59 SECURITY_INIT
60 . = ALIGN(4);
61 __alt_instructions = .;
62 .altinstructions : { *(.altinstructions) }
63 __alt_instructions_end = .;
64 .altinstr_replacement : { *(.altinstr_replacement) }
65
66 __per_cpu_start = .;
67 .data.percpu : { *(.data.percpu) }
68 __per_cpu_end = .;
69
70 . = ALIGN(4096);
71 __initramfs_start = .;
72 .init.ramfs : { *(.init.ramfs) }
73 __initramfs_end = .;
74
75 . = ALIGN(THREAD_SIZE);
76 __init_end = .;
77
78 /* put sections together that have massive alignment issues */
79 . = ALIGN(THREAD_SIZE);
80 .data.init_task : {
81 /* init task record & stack */
82 *(.data.init_task)
83 }
84
85 .trap : {
86 /* trap table management - read entry-table.S before modifying */
87 . = ALIGN(8192);
88 __trap_tables = .;
89 *(.trap.user)
90 *(.trap.kernel)
91 . = ALIGN(4096);
92 *(.trap.break)
93 }
94
95 . = ALIGN(4096);
96 .data.page_aligned : { *(.data.idt) }
97
98 . = ALIGN(L1_CACHE_BYTES);
99 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
100
101 /* Text and read-only data */
102 . = ALIGN(4);
103 _text = .;
104 _stext = .;
105 .text : {
106 *(
107 .text.start .text .text.*
108#ifdef CONFIG_DEBUG_INFO
109 .init.text
110 .exit.text
111 .exitcall.exit
112#endif
113 )
114 SCHED_TEXT
115 *(.fixup)
116 *(.gnu.warning)
117 *(.exitcall.exit)
118 } = 0x9090
119
120 _etext = .; /* End of text section */
121
122 RODATA
123
124 .rodata : {
125 *(.trap.vector)
126
127 /* this clause must not be modified - the ordering and adjacency are imperative */
128 __trap_fixup_tables = .;
129 *(.trap.fixup.user .trap.fixup.kernel)
130
131 }
132
133 . = ALIGN(8); /* Exception table */
134 __start___ex_table = .;
135 __ex_table : { KEEP(*(__ex_table)) }
136 __stop___ex_table = .;
137
138 _sdata = .;
139 .data : { /* Data */
140 *(.data .data.*)
141 *(.exit.data)
142 CONSTRUCTORS
143 }
144
145 _edata = .; /* End of data section */
146
147 /* GP section */
148 . = ALIGN(L1_CACHE_BYTES);
149 _gp = . + 2048;
150 PROVIDE (gp = _gp);
151
152 .sdata : { *(.sdata .sdata.*) }
153
154 /* BSS */
155 . = ALIGN(L1_CACHE_BYTES);
156 __bss_start = .;
157
158 .sbss : { *(.sbss .sbss.*) }
159 .bss : { *(.bss .bss.*) }
160 .bss.stack : { *(.bss) }
161
162 __bss_stop = .;
163 _end = . ;
164 . = ALIGN(PAGE_SIZE);
165 __kernel_image_end = .;
166
167 /* Stabs debugging sections. */
168 .stab 0 : { *(.stab) }
169 .stabstr 0 : { *(.stabstr) }
170 .stab.excl 0 : { *(.stab.excl) }
171 .stab.exclstr 0 : { *(.stab.exclstr) }
172 .stab.index 0 : { *(.stab.index) }
173 .stab.indexstr 0 : { *(.stab.indexstr) }
174
175 .debug_line 0 : { *(.debug_line) }
176 .debug_info 0 : { *(.debug_info) }
177 .debug_abbrev 0 : { *(.debug_abbrev) }
178 .debug_aranges 0 : { *(.debug_aranges) }
179 .debug_frame 0 : { *(.debug_frame) }
180 .debug_pubnames 0 : { *(.debug_pubnames) }
181 .debug_str 0 : { *(.debug_str) }
182 .debug_ranges 0 : { *(.debug_ranges) }
183
184 .comment 0 : { *(.comment) }
185}
186
187__kernel_image_size_no_bss = __bss_start - __kernel_image_start;