1 /* ld script to make M32R Linux kernel
4 #include <asm-generic/vmlinux.lds.h>
5 #include <asm/addrspace.h>
9 #if defined(__LITTLE_ENDIAN__)
12 jiffies = jiffies_64 + 4;
15 kernel_entry = boot - 0x80000000;
20 . = CONFIG_MEMORY_START + __PAGE_OFFSET;
24 .empty_zero_page : { *(.empty_zero_page) } = 0
27 _text = .; /* Text and read-only data */
28 .boot : { *(.boot) } = 0
39 .eit_vector4 : { *(.eit_vector4) }
41 _etext = .; /* End of text section */
43 . = ALIGN(16); /* Exception table */
44 __start___ex_table = .;
45 __ex_table : { *(__ex_table) }
46 __stop___ex_table = .;
60 .data_nosave : { *(.data.nosave) }
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) }
90 __con_initcall_start = .;
91 .con_initcall.init : { *(.con_initcall.init) }
92 __con_initcall_end = .;
95 __alt_instructions = .;
96 .altinstructions : { *(.altinstructions) }
97 __alt_instructions_end = .;
98 .altinstr_replacement : { *(.altinstr_replacement) }
99 /* .exit.text is discard at runtime, not link time, to deal with references
100 from .altinstructions and .eh_frame */
101 .exit.text : { EXIT_TEXT }
102 .exit.data : { EXIT_DATA }
104 #ifdef CONFIG_BLK_DEV_INITRD
106 __initramfs_start = .;
107 .init.ramfs : { *(.init.ramfs) }
114 /* freed after init ends here */
116 __bss_start = .; /* BSS */
123 /* Sections to be discarded */
130 /* Stabs debugging sections. */
131 .stab 0 : { *(.stab) }
132 .stabstr 0 : { *(.stabstr) }
133 .stab.excl 0 : { *(.stab.excl) }
134 .stab.exclstr 0 : { *(.stab.exclstr) }
135 .stab.index 0 : { *(.stab.index) }
136 .stab.indexstr 0 : { *(.stab.indexstr) }
137 .comment 0 : { *(.comment) }