1 /* ld script to make FRV Linux kernel
2 * Written by Martin Mares <mj@atrey.karlin.mff.cuni.cz>;
4 OUTPUT_FORMAT("elf32-frv", "elf32-frv", "elf32-frv")
8 #include <asm-generic/vmlinux.lds.h>
9 #include <asm/processor.h>
11 #include <asm/cache.h>
12 #include <asm/thread_info.h>
14 jiffies = jiffies_64 + 4;
16 __page_offset = 0xc0000000; /* start of area covered by struct pages */
17 __kernel_image_start = __page_offset; /* address at which kernel image resides */
21 . = __kernel_image_start;
23 /* discardable initialisation code and data */
24 . = ALIGN(PAGE_SIZE); /* Init code and data */
30 #ifndef CONFIG_DEBUG_INFO
38 .init.data : { *(.init.data) }
42 .setup.init : { KEEP(*(.init.setup)) }
56 __con_initcall_start = .;
57 .con_initcall.init : { *(.con_initcall.init) }
58 __con_initcall_end = .;
61 __alt_instructions = .;
62 .altinstructions : { *(.altinstructions) }
63 __alt_instructions_end = .;
64 .altinstr_replacement : { *(.altinstr_replacement) }
67 .data.percpu : { *(.data.percpu) }
71 __initramfs_start = .;
72 .init.ramfs : { *(.init.ramfs) }
75 . = ALIGN(THREAD_SIZE);
78 /* put sections together that have massive alignment issues */
79 . = ALIGN(THREAD_SIZE);
81 /* init task record & stack */
86 /* trap table management - read entry-table.S before modifying */
96 .data.page_aligned : { *(.data.idt) }
98 . = ALIGN(L1_CACHE_BYTES);
99 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
101 /* Text and read-only data */
107 .text.start .text .text.*
108 #ifdef CONFIG_DEBUG_INFO
121 _etext = .; /* End of text section */
128 /* this clause must not be modified - the ordering and adjacency are imperative */
129 __trap_fixup_tables = .;
130 *(.trap.fixup.user .trap.fixup.kernel)
134 . = ALIGN(8); /* Exception table */
135 __start___ex_table = .;
136 __ex_table : { KEEP(*(__ex_table)) }
137 __stop___ex_table = .;
146 _edata = .; /* End of data section */
149 . = ALIGN(L1_CACHE_BYTES);
153 .sdata : { *(.sdata .sdata.*) }
156 . = ALIGN(L1_CACHE_BYTES);
159 .sbss : { *(.sbss .sbss.*) }
160 .bss : { *(.bss .bss.*) }
161 .bss.stack : { *(.bss) }
165 . = ALIGN(PAGE_SIZE);
166 __kernel_image_end = .;
168 /* Stabs debugging sections. */
169 .stab 0 : { *(.stab) }
170 .stabstr 0 : { *(.stabstr) }
171 .stab.excl 0 : { *(.stab.excl) }
172 .stab.exclstr 0 : { *(.stab.exclstr) }
173 .stab.index 0 : { *(.stab.index) }
174 .stab.indexstr 0 : { *(.stab.indexstr) }
176 .debug_line 0 : { *(.debug_line) }
177 .debug_info 0 : { *(.debug_info) }
178 .debug_abbrev 0 : { *(.debug_abbrev) }
179 .debug_aranges 0 : { *(.debug_aranges) }
180 .debug_frame 0 : { *(.debug_frame) }
181 .debug_pubnames 0 : { *(.debug_pubnames) }
182 .debug_str 0 : { *(.debug_str) }
183 .debug_ranges 0 : { *(.debug_ranges) }
185 .comment 0 : { *(.comment) }
188 __kernel_image_size_no_bss = __bss_start - __kernel_image_start;