1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* ld script to make M32R Linux kernel
5 #include <asm-generic/vmlinux.lds.h>
6 #include <asm/addrspace.h>
8 #include <asm/thread_info.h>
11 #if defined(__LITTLE_ENDIAN__)
14 jiffies = jiffies_64 + 4;
17 kernel_entry = boot - 0x80000000;
22 . = CONFIG_MEMORY_START + __PAGE_OFFSET;
26 .empty_zero_page : { *(.empty_zero_page) } = 0
29 _text = .; /* Text and read-only data */
30 .boot : { *(.boot) } = 0
42 .eit_vector4 : { *(.eit_vector4) }
44 _etext = .; /* End of text section */
49 _sdata = .; /* Start of data section */
51 RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
52 _edata = .; /* End of data section */
54 /* will be freed after init */
55 . = ALIGN(PAGE_SIZE); /* Init code and data */
57 INIT_TEXT_SECTION(PAGE_SIZE)
62 /* freed after init ends here */
68 /* Stabs debugging sections. */
69 .stab 0 : { *(.stab) }
70 .stabstr 0 : { *(.stabstr) }
71 .stab.excl 0 : { *(.stab.excl) }
72 .stab.exclstr 0 : { *(.stab.exclstr) }
73 .stab.index 0 : { *(.stab.index) }
74 .stab.indexstr 0 : { *(.stab.indexstr) }
75 .comment 0 : { *(.comment) }
77 /* Sections to be discarded */