| * ld script to make SuperH Linux kernel |
| * Written by Niibe Yutaka and Paul Mundt |
| #define LOAD_OFFSET PAGE_OFFSET |
| #include <asm/thread_info.h> |
| #include <asm/vmlinux.lds.h> |
| #define MEMORY_OFFSET __MEMORY_START |
| . = PAGE_OFFSET + MEMORY_OFFSET + PHYSICAL_OFFSET + CONFIG_ZERO_PAGE_OFFSET; |
| _text = .; /* Text and read-only data */ |
| .empty_zero_page : AT(ADDR(.empty_zero_page) - LOAD_OFFSET) { |
| .text : AT(ADDR(.text) - LOAD_OFFSET) { |
| _etext = .; /* End of text section */ |
| RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE) |
| . = ALIGN(PAGE_SIZE); /* Init code and data */ |
| INIT_TEXT_SECTION(PAGE_SIZE) |
| .machvec.init : AT(ADDR(.machvec.init) - LOAD_OFFSET) { |
| PERCPU_SECTION(L1_CACHE_BYTES) |
| * .exit.text is discarded at runtime, not link time, to deal with |
| * references from __bug_table |
| .exit.text : AT(ADDR(.exit.text) - LOAD_OFFSET) { EXIT_TEXT } |
| .exit.data : AT(ADDR(.exit.data) - LOAD_OFFSET) { EXIT_DATA } |
| BSS_SECTION(0, PAGE_SIZE, 4) |