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(L1_CACHE_BYTES, 4096)
46 /* trap table management - read entry-table.S before modifying */
55 /* Text and read-only data */
67 #ifdef CONFIG_DEBUG_INFO
77 _etext = .; /* End of text section */
84 /* this clause must not be modified - the ordering and adjacency are imperative */
85 __trap_fixup_tables = .;
86 *(.trap.fixup.user .trap.fixup.kernel)
94 INIT_TASK_DATA(THREAD_SIZE)
95 CACHELINE_ALIGNED_DATA(L1_CACHE_BYTES)
102 _edata = .; /* End of data section */
105 . = ALIGN(L1_CACHE_BYTES);
109 .sdata : { *(.sdata .sdata.*) }
112 . = ALIGN(L1_CACHE_BYTES);
115 .sbss : { *(.sbss .sbss.*) }
116 .bss : { *(.bss .bss.*) }
117 .bss..stack : { *(.bss) }
121 . = ALIGN(PAGE_SIZE);
122 __kernel_image_end = .;
127 .comment 0 : { *(.comment) }
132 __kernel_image_size_no_bss = __bss_start - __kernel_image_start;