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  _sdata = .;			/* Start of rw data section */
29  RW_DATA_SECTION(16, PAGE_SIZE, THREAD_SIZE) :data
30  /* End of data goes *here* so that freeing init code works properly. */
31  _edata = .;
32  NOTES
33
34  /* will be freed after init */
35  . = ALIGN(PAGE_SIZE);	/* Init code and data */
36__init_begin = .;
37	INIT_TEXT_SECTION(PAGE_SIZE)
38	INIT_DATA_SECTION(16)
39	.m68k_fixup : {
40		__start_fixup = .;
41		*(.m68k_fixup)
42		__stop_fixup = .;
43	}
44	. = ALIGN(PAGE_SIZE);
45	__init_end = .;
46
47  BSS_SECTION(0, 0, 0)
48
49  _end = . ;
50
51  STABS_DEBUG
52
53  /* Sections to be discarded */
54  DISCARDS
55}
56