1 /* $Id: vmlinux.lds.S,v 1.8 2003/05/16 17:18:14 lethal Exp $
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 */
20 text = .; /* Text and read-only data */
33 . = ALIGN(16); /* Exception table */
34 __start___ex_table = .;
35 __ex_table : { *(__ex_table) }
36 __stop___ex_table = .;
38 _etext = .; /* End of text section */
47 /* Align the initial ramdisk image (INITRD) on page boundaries. */
58 .data.page_aligned : { *(.data.page_aligned) }
60 .data_nosave : { *(.data.nosave) }
66 . = ALIGN(L1_CACHE_BYTES);
67 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
69 _edata = .; /* End of data section */
71 . = ALIGN(THREAD_SIZE); /* init_task */
72 .data.init_task : { *(.data.init_task) }
74 . = ALIGN(PAGE_SIZE); /* Init code and data */
77 .init.text : { *(.init.text) }
79 .init.data : { *(.init.data) }
82 .init.setup : { *(.init.setup) }
89 __con_initcall_start = .;
90 .con_initcall.init : { *(.con_initcall.init) }
91 __con_initcall_end = .;
94 /* .exit.text is discarded at runtime, not link time, to deal with
95 references from .rodata */
96 .exit.text : { *(.exit.text) }
97 .exit.data : { *(.exit.data) }
99 #ifdef CONFIG_BLK_DEV_INITRD
100 . = ALIGN(PAGE_SIZE);
102 __initramfs_start = .;
103 .init.ramfs : { *(.init.ramfs) }
109 .machvec.init : { *(.machvec.init) }
112 . = ALIGN(PAGE_SIZE);
115 __bss_start = .; /* BSS */
119 _ebss = .; /* uClinux MTD sucks */
123 /* When something in the kernel is NOT compiled as a module, the
124 * module cleanup code and data are put into these segments. Both
125 * can then be thrown away, as cleanup code is never called unless