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
40 PERCPU_SECTION(L1_CACHE_BYTES)
46 /* trap table management - read entry-table.S before modifying */
55 /* Text and read-only data */
68 #ifdef CONFIG_DEBUG_INFO
78 _etext = .; /* End of text section */
85 /* this clause must not be modified - the ordering and adjacency are imperative */
86 __trap_fixup_tables = .;
87 *(.trap.fixup.user .trap.fixup.kernel)
95 INIT_TASK_DATA(THREAD_SIZE)
96 CACHELINE_ALIGNED_DATA(L1_CACHE_BYTES)
103 _edata = .; /* End of data section */
106 . = ALIGN(L1_CACHE_BYTES);
110 .sdata : { *(.sdata .sdata.*) }
113 . = ALIGN(L1_CACHE_BYTES);
116 .sbss : { *(.sbss .sbss.*) }
117 .bss : { *(.bss .bss.*) }
118 .bss..stack : { *(.bss) }
122 . = ALIGN(PAGE_SIZE);
123 __kernel_image_end = .;
128 .comment 0 : { *(.comment) }
133 __kernel_image_size_no_bss = __bss_start - __kernel_image_start;