1 /* ld script to make M32R Linux kernel
4 #include <linux/config.h>
5 #include <asm-generic/vmlinux.lds.h>
6 #include <asm/addrspace.h>
11 #if defined(__LITTLE_ENDIAN__)
14 jiffies = jiffies_64 + 4;
18 . = CONFIG_MEMORY_START + __PAGE_OFFSET;
22 .empty_zero_page : { *(.empty_zero_page) } = 0
25 _text = .; /* Text and read-only data */
26 .boot : { *(.boot) } = 0
36 .eit_vector4 : { *(.eit_vector4) }
38 _etext = .; /* End of text section */
40 . = ALIGN(16); /* Exception table */
41 __start___ex_table = .;
42 __ex_table : { *(__ex_table) }
43 __stop___ex_table = .;
57 .data_nosave : { *(.data.nosave) }
62 .data.page_aligned : { *(.data.idt) }
65 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
67 _edata = .; /* End of data section */
69 . = ALIGN(8192); /* init_task */
70 .data.init_task : { *(.data.init_task) }
72 /* will be freed after init */
73 . = ALIGN(4096); /* Init code and data */
80 .init.data : { *(.init.data) }
83 .init.setup : { *(.init.setup) }
96 __con_initcall_start = .;
97 .con_initcall.init : { *(.con_initcall.init) }
98 __con_initcall_end = .;
101 __alt_instructions = .;
102 .altinstructions : { *(.altinstructions) }
103 __alt_instructions_end = .;
104 .altinstr_replacement : { *(.altinstr_replacement) }
105 /* .exit.text is discard at runtime, not link time, to deal with references
106 from .altinstructions and .eh_frame */
107 .exit.text : { *(.exit.text) }
108 .exit.data : { *(.exit.data) }
110 __initramfs_start = .;
111 .init.ramfs : { *(.init.ramfs) }
115 .data.percpu : { *(.data.percpu) }
119 /* freed after init ends here */
121 __bss_start = .; /* BSS */
128 /* Sections to be discarded */
135 /* Stabs debugging sections. */
136 .stab 0 : { *(.stab) }
137 .stabstr 0 : { *(.stabstr) }
138 .stab.excl 0 : { *(.stab.excl) }
139 .stab.exclstr 0 : { *(.stab.exclstr) }
140 .stab.index 0 : { *(.stab.index) }
141 .stab.indexstr 0 : { *(.stab.indexstr) }
142 .comment 0 : { *(.comment) }