2 * ld script to make SuperH Linux kernel
3 * Written by Niibe Yutaka and Paul Mundt
6 #define LOAD_OFFSET PAGE_OFFSET
13 #include <asm/thread_info.h>
14 #include <asm/cache.h>
15 #include <asm/vmlinux.lds.h>
18 #define MEMORY_OFFSET 0
20 #define MEMORY_OFFSET __MEMORY_START
26 . = PAGE_OFFSET + MEMORY_OFFSET + PHYSICAL_OFFSET + CONFIG_ZERO_PAGE_OFFSET;
28 _text = .; /* Text and read-only data */
30 .empty_zero_page : AT(ADDR(.empty_zero_page) - LOAD_OFFSET) {
34 .text : AT(ADDR(.text) - LOAD_OFFSET) {
45 _etext = .; /* End of text section */
53 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
58 . = ALIGN(PAGE_SIZE); /* Init code and data */
60 INIT_TEXT_SECTION(PAGE_SIZE)
64 .machvec.init : AT(ADDR(.machvec.init) - LOAD_OFFSET) {
70 PERCPU_SECTION(L1_CACHE_BYTES)
73 * .exit.text is discarded at runtime, not link time, to deal with
74 * references from __bug_table
76 .exit.text : AT(ADDR(.exit.text) - LOAD_OFFSET) { EXIT_TEXT }
77 .exit.data : AT(ADDR(.exit.data) - LOAD_OFFSET) { EXIT_DATA }
81 BSS_SECTION(0, PAGE_SIZE, 4)