1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* ld script to make FRV Linux kernel
3 * Written by Martin Mares <mj@atrey.karlin.mff.cuni.cz>;
5 OUTPUT_FORMAT("elf32-frv", "elf32-frv", "elf32-frv")
9 #include <asm-generic/vmlinux.lds.h>
10 #include <asm/processor.h>
12 #include <asm/cache.h>
13 #include <asm/thread_info.h>
15 jiffies = jiffies_64 + 4;
17 __page_offset = CONFIG_PAGE_OFFSET; /* start of area covered by struct pages */
18 __kernel_image_start = __page_offset; /* address at which kernel image resides */
22 . = __kernel_image_start;
24 /* discardable initialisation code and data */
25 . = ALIGN(PAGE_SIZE); /* Init code and data */
31 #ifndef CONFIG_DEBUG_INFO
41 PERCPU_SECTION(L1_CACHE_BYTES)
47 /* trap table management - read entry-table.S before modifying */
56 /* Text and read-only data */
69 #ifdef CONFIG_DEBUG_INFO
79 _etext = .; /* End of text section */
86 /* this clause must not be modified - the ordering and adjacency are imperative */
87 __trap_fixup_tables = .;
88 *(.trap.fixup.user .trap.fixup.kernel)
96 INIT_TASK_DATA(THREAD_SIZE)
97 CACHELINE_ALIGNED_DATA(L1_CACHE_BYTES)
104 _edata = .; /* End of data section */
109 . = ALIGN(L1_CACHE_BYTES);
113 .sdata : { *(.sdata .sdata.*) }
116 . = ALIGN(L1_CACHE_BYTES);
119 .sbss : { *(.sbss .sbss.*) }
120 .bss : { *(.bss .bss.*) }
121 .bss..stack : { *(.bss) }
125 . = ALIGN(PAGE_SIZE);
126 __kernel_image_end = .;
131 .comment 0 : { *(.comment) }
136 __kernel_image_size_no_bss = __bss_start - __kernel_image_start;