1/* ld script to make m68k Linux kernel */ 2 3#include <asm-generic/vmlinux.lds.h> 4#include <asm/page.h> 5#include <asm/thread_info.h> 6 7OUTPUT_FORMAT("elf32-m68k", "elf32-m68k", "elf32-m68k") 8OUTPUT_ARCH(m68k) 9ENTRY(_start) 10jiffies = jiffies_64 + 4; 11SECTIONS 12{ 13 . = 0xE002000; 14 _text = .; /* Text and read-only data */ 15 .text : { 16 HEAD_TEXT 17 TEXT_TEXT 18 SCHED_TEXT 19 LOCK_TEXT 20 *(.fixup) 21 *(.gnu.warning) 22 } :text = 0x4e75 23 RODATA 24 25 _etext = .; /* End of text section */ 26 27 EXCEPTION_TABLE(16) :data 28 RW_DATA_SECTION(16, PAGE_SIZE, THREAD_SIZE) :data 29 /* End of data goes *here* so that freeing init code works properly. */ 30 _edata = .; 31 NOTES 32 33 /* will be freed after init */ 34 . = ALIGN(PAGE_SIZE); /* Init code and data */ 35__init_begin = .; 36 INIT_TEXT_SECTION(PAGE_SIZE) 37 INIT_DATA_SECTION(16) 38 .m68k_fixup : { 39 __start_fixup = .; 40 *(.m68k_fixup) 41 __stop_fixup = .; 42 } 43 . = ALIGN(PAGE_SIZE); 44 __init_end = .; 45 46 BSS_SECTION(0, 0, 0) 47 48 _end = . ; 49 50 STABS_DEBUG 51 52 /* Sections to be discarded */ 53 DISCARDS 54} 55