2 * ld script to make SuperH Linux kernel
3 * Written by Niibe Yutaka
5 #include <asm/thread_info.h>
7 #include <asm-generic/vmlinux.lds.h>
9 #ifdef CONFIG_CPU_LITTLE_ENDIAN
10 OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux")
12 OUTPUT_FORMAT("elf32-shbig-linux", "elf32-shbig-linux", "elf32-shbig-linux")
18 . = CONFIG_PAGE_OFFSET + CONFIG_MEMORY_START + CONFIG_ZERO_PAGE_OFFSET;
19 _text = .; /* Text and read-only data */
35 . = ALIGN(16); /* Exception table */
36 __start___ex_table = .;
37 __ex_table : { *(__ex_table) }
38 __stop___ex_table = .;
40 _etext = .; /* End of text section */
47 * Code which must be executed uncached and the associated data
51 .uncached.text : { *(.uncached.text) }
52 .uncached.data : { *(.uncached.data) }
55 . = ALIGN(THREAD_SIZE);
59 . = ALIGN(L1_CACHE_BYTES);
60 *(.data.cacheline_aligned)
62 . = ALIGN(L1_CACHE_BYTES);
77 _edata = .; /* End of data section */
79 . = ALIGN(PAGE_SIZE); /* Init code and data */
82 .init.text : { *(.init.text) }
84 .init.data : { *(.init.data) }
88 .init.setup : { *(.init.setup) }
96 __con_initcall_start = .;
97 .con_initcall.init : { *(.con_initcall.init) }
98 __con_initcall_end = .;
102 #ifdef CONFIG_BLK_DEV_INITRD
103 . = ALIGN(PAGE_SIZE);
104 __initramfs_start = .;
105 .init.ramfs : { *(.init.ramfs) }
111 .machvec.init : { *(.machvec.init) }
117 * .exit.text is discarded at runtime, not link time, to deal with
118 * references from __bug_table
120 .exit.text : { *(.exit.text) }
121 .exit.data : { *(.exit.data) }
123 . = ALIGN(PAGE_SIZE);
126 __bss_start = .; /* BSS */
131 _ebss = .; /* uClinux MTD sucks */
136 * When something in the kernel is NOT compiled as a module, the
137 * module cleanup code and data are put into these segments. Both
138 * can then be thrown away, as cleanup code is never called unless