]> git.ipfire.org Git - thirdparty/linux.git/blame - arch/m68k/kernel/vmlinux-sun3.lds
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/linux.git] / arch / m68k / kernel / vmlinux-sun3.lds
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
2/* ld script to make m68k Linux kernel */
3
4#include <asm-generic/vmlinux.lds.h>
97d26e73 5#include <asm/page.h>
7c5fd561 6#include <asm/thread_info.h>
1da177e4
LT
7
8OUTPUT_FORMAT("elf32-m68k", "elf32-m68k", "elf32-m68k")
9OUTPUT_ARCH(m68k)
10ENTRY(_start)
11jiffies = jiffies_64 + 4;
12SECTIONS
13{
a3a79bd7 14 . = 0xE002000;
1da177e4
LT
15 _text = .; /* Text and read-only data */
16 .text : {
6f335cab 17 HEAD_TEXT
7664709b 18 TEXT_TEXT
1da177e4 19 SCHED_TEXT
6727ad9e 20 CPUIDLE_TEXT
198a4101 21 LOCK_TEXT
1da177e4
LT
22 *(.fixup)
23 *(.gnu.warning)
24 } :text = 0x4e75
25 RODATA
26
27 _etext = .; /* End of text section */
28
7c5fd561 29 EXCEPTION_TABLE(16) :data
a2d063ac 30 _sdata = .; /* Start of rw data section */
7c5fd561 31 RW_DATA_SECTION(16, PAGE_SIZE, THREAD_SIZE) :data
1da177e4
LT
32 /* End of data goes *here* so that freeing init code works properly. */
33 _edata = .;
877d5243 34 NOTES
1da177e4
LT
35
36 /* will be freed after init */
97d26e73 37 . = ALIGN(PAGE_SIZE); /* Init code and data */
1da177e4 38__init_begin = .;
7c5fd561
TA
39 INIT_TEXT_SECTION(PAGE_SIZE)
40 INIT_DATA_SECTION(16)
fbe9c961
RZ
41 .m68k_fixup : {
42 __start_fixup = .;
43 *(.m68k_fixup)
44 __stop_fixup = .;
45 }
97d26e73 46 . = ALIGN(PAGE_SIZE);
1da177e4 47 __init_end = .;
1da177e4 48
7c5fd561 49 BSS_SECTION(0, 0, 0)
1da177e4
LT
50
51 _end = . ;
52
7c5fd561 53 STABS_DEBUG
1da177e4 54
023bf6f1
TH
55 /* Sections to be discarded */
56 DISCARDS
1da177e4 57}