2 * ld script to make SuperH Linux kernel
3 * Written by Niibe Yutaka and Paul Mundt
6 #define LOAD_OFFSET CONFIG_PAGE_OFFSET
13 #include <asm/thread_info.h>
14 #include <asm/cache.h>
15 #include <asm/vmlinux.lds.h>
20 #ifdef CONFIG_PMB_FIXED
21 . = CONFIG_PAGE_OFFSET + (CONFIG_MEMORY_START & 0x1fffffff) +
22 CONFIG_ZERO_PAGE_OFFSET;
23 #elif defined(CONFIG_32BIT)
24 . = CONFIG_PAGE_OFFSET + CONFIG_ZERO_PAGE_OFFSET;
26 . = CONFIG_PAGE_OFFSET + CONFIG_MEMORY_START + CONFIG_ZERO_PAGE_OFFSET;
29 _text = .; /* Text and read-only data */
31 .empty_zero_page : AT(ADDR(.empty_zero_page) - LOAD_OFFSET) {
35 .text : AT(ADDR(.text) - LOAD_OFFSET) {
39 #ifdef CONFIG_SUPERH64
50 _etext = .; /* End of text section */
59 * Code which must be executed uncached and the associated data
62 .uncached : AT(ADDR(.uncached) - LOAD_OFFSET) {
69 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
71 _edata = .; /* End of data section */
75 . = ALIGN(PAGE_SIZE); /* Init code and data */
77 INIT_TEXT_SECTION(PAGE_SIZE)
81 .machvec.init : AT(ADDR(.machvec.init) - LOAD_OFFSET) {
90 * .exit.text is discarded at runtime, not link time, to deal with
91 * references from __bug_table
93 .exit.text : AT(ADDR(.exit.text) - LOAD_OFFSET) { EXIT_TEXT }
94 .exit.data : AT(ADDR(.exit.data) - LOAD_OFFSET) { EXIT_DATA }
98 BSS_SECTION(0, PAGE_SIZE, 4)
99 _ebss = .; /* uClinux MTD sucks */