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>
6 #include <asm-generic/vmlinux.lds.h>
8 #ifdef CONFIG_CPU_LITTLE_ENDIAN
9 OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux")
11 OUTPUT_FORMAT("elf32-shbig-linux", "elf32-shbig-linux", "elf32-shbig-linux")
17 . = CONFIG_PAGE_OFFSET + CONFIG_MEMORY_START + CONFIG_ZERO_PAGE_OFFSET;
18 _text = .; /* Text and read-only data */
19 text = .; /* Text and read-only data */
31 . = ALIGN(16); /* Exception table */
32 __start___ex_table = .;
33 __ex_table : { *(__ex_table) }
34 __stop___ex_table = .;
38 _etext = .; /* End of text section */
43 /* Align the initial ramdisk image (INITRD) on page boundaries. */
54 .data.page_aligned : { *(.data.page_aligned) }
58 .data.percpu : { *(.data.percpu) }
60 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
62 _edata = .; /* End of data section */
64 . = ALIGN(THREAD_SIZE); /* init_task */
65 .data.init_task : { *(.data.init_task) }
67 . = ALIGN(PAGE_SIZE); /* Init code and data */
70 .init.text : { *(.init.text) }
72 .init.data : { *(.init.data) }
75 .init.setup : { *(.init.setup) }
82 __con_initcall_start = .;
83 .con_initcall.init : { *(.con_initcall.init) }
84 __con_initcall_end = .;
87 #ifdef CONFIG_BLK_DEV_INITRD
88 __initramfs_start = .;
89 .init.ramfs : { *(.init.ramfs) }
94 .init.machvec : { *(.init.machvec) }
100 __bss_start = .; /* BSS */
106 /* When something in the kernel is NOT compiled as a module, the
107 * module cleanup code and data are put into these segments. Both
108 * can then be thrown away, as cleanup code is never called unless
117 /* Stabs debugging sections. */
118 .stab 0 : { *(.stab) }
119 .stabstr 0 : { *(.stabstr) }
120 .stab.excl 0 : { *(.stab.excl) }
121 .stab.exclstr 0 : { *(.stab.exclstr) }
122 .stab.index 0 : { *(.stab.index) }
123 .stab.indexstr 0 : { *(.stab.indexstr) }
124 .comment 0 : { *(.comment) }
125 /* DWARF debug sections.
126 Symbols in the DWARF debugging section are relative to the beginning
127 of the section so we begin .debug at 0. */
129 .debug 0 : { *(.debug) }
130 .line 0 : { *(.line) }
131 /* GNU DWARF 1 extensions */
132 .debug_srcinfo 0 : { *(.debug_srcinfo) }
133 .debug_sfnames 0 : { *(.debug_sfnames) }
134 /* DWARF 1.1 and DWARF 2 */
135 .debug_aranges 0 : { *(.debug_aranges) }
136 .debug_pubnames 0 : { *(.debug_pubnames) }
138 .debug_info 0 : { *(.debug_info) }
139 .debug_abbrev 0 : { *(.debug_abbrev) }
140 .debug_line 0 : { *(.debug_line) }
141 .debug_frame 0 : { *(.debug_frame) }
142 .debug_str 0 : { *(.debug_str) }
143 .debug_loc 0 : { *(.debug_loc) }
144 .debug_macinfo 0 : { *(.debug_macinfo) }
145 /* SGI/MIPS DWARF 2 extensions */
146 .debug_weaknames 0 : { *(.debug_weaknames) }
147 .debug_funcnames 0 : { *(.debug_funcnames) }
148 .debug_typenames 0 : { *(.debug_typenames) }
149 .debug_varnames 0 : { *(.debug_varnames) }
150 /* These must appear regardless of . */