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) {
44 _etext = .; /* End of text section */
52 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
57 . = ALIGN(PAGE_SIZE); /* Init code and data */
59 INIT_TEXT_SECTION(PAGE_SIZE)
63 .machvec.init : AT(ADDR(.machvec.init) - LOAD_OFFSET) {
69 PERCPU_SECTION(L1_CACHE_BYTES)
72 * .exit.text is discarded at runtime, not link time, to deal with
73 * references from __bug_table
75 .exit.text : AT(ADDR(.exit.text) - LOAD_OFFSET) { EXIT_TEXT }
76 .exit.data : AT(ADDR(.exit.data) - LOAD_OFFSET) { EXIT_DATA }
80 BSS_SECTION(0, PAGE_SIZE, 4)