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 #ifdef CONFIG_BLK_DEV_INITRD
64 __initramfs_start = .;
65 .init.ramfs : { *(.init.ramfs) }
69 . = ALIGN(THREAD_SIZE);
72 /* put sections together that have massive alignment issues */
73 . = ALIGN(THREAD_SIZE);
75 /* init task record & stack */
80 /* trap table management - read entry-table.S before modifying */
90 .data.page_aligned : { *(.data.idt) }
92 . = ALIGN(L1_CACHE_BYTES);
93 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
95 /* Text and read-only data */
102 #ifdef CONFIG_DEBUG_INFO
116 _etext = .; /* End of text section */
123 /* this clause must not be modified - the ordering and adjacency are imperative */
124 __trap_fixup_tables = .;
125 *(.trap.fixup.user .trap.fixup.kernel)
129 . = ALIGN(8); /* Exception table */
130 __start___ex_table = .;
131 __ex_table : { KEEP(*(__ex_table)) }
132 __stop___ex_table = .;
142 _edata = .; /* End of data section */
145 . = ALIGN(L1_CACHE_BYTES);
149 .sdata : { *(.sdata .sdata.*) }
152 . = ALIGN(L1_CACHE_BYTES);
155 .sbss : { *(.sbss .sbss.*) }
156 .bss : { *(.bss .bss.*) }
157 .bss.stack : { *(.bss) }
161 . = ALIGN(PAGE_SIZE);
162 __kernel_image_end = .;
164 /* Stabs debugging sections. */
165 .stab 0 : { *(.stab) }
166 .stabstr 0 : { *(.stabstr) }
167 .stab.excl 0 : { *(.stab.excl) }
168 .stab.exclstr 0 : { *(.stab.exclstr) }
169 .stab.index 0 : { *(.stab.index) }
170 .stab.indexstr 0 : { *(.stab.indexstr) }
172 .debug_line 0 : { *(.debug_line) }
173 .debug_info 0 : { *(.debug_info) }
174 .debug_abbrev 0 : { *(.debug_abbrev) }
175 .debug_aranges 0 : { *(.debug_aranges) }
176 .debug_frame 0 : { *(.debug_frame) }
177 .debug_pubnames 0 : { *(.debug_pubnames) }
178 .debug_str 0 : { *(.debug_str) }
179 .debug_ranges 0 : { *(.debug_ranges) }
181 .comment 0 : { *(.comment) }
184 __kernel_image_size_no_bss = __bss_start - __kernel_image_start;