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 = CONFIG_PAGE_OFFSET; /* 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 = .;
57 #ifdef CONFIG_BLK_DEV_INITRD
59 __initramfs_start = .;
60 .init.ramfs : { *(.init.ramfs) }
64 . = ALIGN(THREAD_SIZE);
67 /* put sections together that have massive alignment issues */
68 . = ALIGN(THREAD_SIZE);
70 /* init task record & stack */
74 . = ALIGN(L1_CACHE_BYTES);
75 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
78 /* trap table management - read entry-table.S before modifying */
87 /* Text and read-only data */
99 #ifdef CONFIG_DEBUG_INFO
109 _etext = .; /* End of text section */
116 /* this clause must not be modified - the ordering and adjacency are imperative */
117 __trap_fixup_tables = .;
118 *(.trap.fixup.user .trap.fixup.kernel)
122 . = ALIGN(8); /* Exception table */
123 __start___ex_table = .;
124 __ex_table : { KEEP(*(__ex_table)) }
125 __stop___ex_table = .;
135 _edata = .; /* End of data section */
138 . = ALIGN(L1_CACHE_BYTES);
142 .sdata : { *(.sdata .sdata.*) }
145 . = ALIGN(L1_CACHE_BYTES);
148 .sbss : { *(.sbss .sbss.*) }
149 .bss : { *(.bss .bss.*) }
150 .bss.stack : { *(.bss) }
154 . = ALIGN(PAGE_SIZE);
155 __kernel_image_end = .;
157 /* Stabs debugging sections. */
158 .stab 0 : { *(.stab) }
159 .stabstr 0 : { *(.stabstr) }
160 .stab.excl 0 : { *(.stab.excl) }
161 .stab.exclstr 0 : { *(.stab.exclstr) }
162 .stab.index 0 : { *(.stab.index) }
163 .stab.indexstr 0 : { *(.stab.indexstr) }
165 .debug_line 0 : { *(.debug_line) }
166 .debug_info 0 : { *(.debug_info) }
167 .debug_abbrev 0 : { *(.debug_abbrev) }
168 .debug_aranges 0 : { *(.debug_aranges) }
169 .debug_frame 0 : { *(.debug_frame) }
170 .debug_pubnames 0 : { *(.debug_pubnames) }
171 .debug_str 0 : { *(.debug_str) }
172 .debug_ranges 0 : { *(.debug_ranges) }
174 .comment 0 : { *(.comment) }
179 __kernel_image_size_no_bss = __bss_start - __kernel_image_start;