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)) }
50 __con_initcall_start = .;
51 .con_initcall.init : { *(.con_initcall.init) }
52 __con_initcall_end = .;
55 __alt_instructions = .;
56 .altinstructions : { *(.altinstructions) }
57 __alt_instructions_end = .;
58 .altinstr_replacement : { *(.altinstr_replacement) }
62 .data.percpu : { *(.data.percpu) }
65 #ifdef CONFIG_BLK_DEV_INITRD
67 __initramfs_start = .;
68 .init.ramfs : { *(.init.ramfs) }
72 . = ALIGN(THREAD_SIZE);
75 /* put sections together that have massive alignment issues */
76 . = ALIGN(THREAD_SIZE);
78 /* init task record & stack */
83 /* trap table management - read entry-table.S before modifying */
93 .data.page_aligned : { *(.data.idt) }
95 . = ALIGN(L1_CACHE_BYTES);
96 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
98 /* Text and read-only data */
104 .text.start .text .text.*
105 #ifdef CONFIG_DEBUG_INFO
118 _etext = .; /* End of text section */
125 /* this clause must not be modified - the ordering and adjacency are imperative */
126 __trap_fixup_tables = .;
127 *(.trap.fixup.user .trap.fixup.kernel)
131 . = ALIGN(8); /* Exception table */
132 __start___ex_table = .;
133 __ex_table : { KEEP(*(__ex_table)) }
134 __stop___ex_table = .;
143 _edata = .; /* End of data section */
146 . = ALIGN(L1_CACHE_BYTES);
150 .sdata : { *(.sdata .sdata.*) }
153 . = ALIGN(L1_CACHE_BYTES);
156 .sbss : { *(.sbss .sbss.*) }
157 .bss : { *(.bss .bss.*) }
158 .bss.stack : { *(.bss) }
162 . = ALIGN(PAGE_SIZE);
163 __kernel_image_end = .;
165 /* Stabs debugging sections. */
166 .stab 0 : { *(.stab) }
167 .stabstr 0 : { *(.stabstr) }
168 .stab.excl 0 : { *(.stab.excl) }
169 .stab.exclstr 0 : { *(.stab.exclstr) }
170 .stab.index 0 : { *(.stab.index) }
171 .stab.indexstr 0 : { *(.stab.indexstr) }
173 .debug_line 0 : { *(.debug_line) }
174 .debug_info 0 : { *(.debug_info) }
175 .debug_abbrev 0 : { *(.debug_abbrev) }
176 .debug_aranges 0 : { *(.debug_aranges) }
177 .debug_frame 0 : { *(.debug_frame) }
178 .debug_pubnames 0 : { *(.debug_pubnames) }
179 .debug_str 0 : { *(.debug_str) }
180 .debug_ranges 0 : { *(.debug_ranges) }
182 .comment 0 : { *(.comment) }
185 __kernel_image_size_no_bss = __bss_start - __kernel_image_start;