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