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
120 _etext = .; /* End of text section */
127 /* this clause must not be modified - the ordering and adjacency are imperative */
128 __trap_fixup_tables = .;
129 *(.trap.fixup.user .trap.fixup.kernel)
133 . = ALIGN(8); /* Exception table */
134 __start___ex_table = .;
135 __ex_table : { KEEP(*(__ex_table)) }
136 __stop___ex_table = .;
145 _edata = .; /* End of data section */
148 . = ALIGN(L1_CACHE_BYTES);
152 .sdata : { *(.sdata .sdata.*) }
155 . = ALIGN(L1_CACHE_BYTES);
158 .sbss : { *(.sbss .sbss.*) }
159 .bss : { *(.bss .bss.*) }
160 .bss.stack : { *(.bss) }
164 . = ALIGN(PAGE_SIZE);
165 __kernel_image_end = .;
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) }
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) }
184 .comment 0 : { *(.comment) }
187 __kernel_image_size_no_bss = __bss_start - __kernel_image_start;