1 /* $Id: vmlinux.lds.in,v 1.5 2001/07/27 11:45:55 gniibe Exp $
2 * ld script to make SuperH Linux kernel
3 * Written by Niibe Yutaka
5 #include <linux/config.h>
6 #ifdef CONFIG_CPU_LITTLE_ENDIAN
7 OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux")
9 OUTPUT_FORMAT("elf32-shbig-linux", "elf32-shbig-linux", "elf32-shbig-linux")
15 . = 0x80000000 + CONFIG_MEMORY_START + 0x1000;
16 _text = .; /* Text and read-only data */
17 text = .; /* Text and read-only data */
26 .rodata : { *(.rodata) *(.rodata.*) }
27 .kstrtab : { *(.kstrtab) }
29 . = ALIGN(16); /* Exception table */
30 __start___ex_table = .;
31 __ex_table : { *(__ex_table) }
32 __stop___ex_table = .;
34 __start___ksymtab = .; /* Kernel symbol table */
35 __ksymtab : { *(__ksymtab) }
38 __start___kallsyms = .; /* All kernel symbols */
39 __kallsyms : { *(__kallsyms) }
40 __stop___kallsyms = .;
42 _etext = .; /* End of text section */
49 _edata = .; /* End of data section */
51 . = ALIGN(8192); /* init_task */
52 .data.init_task : { *(.data.init_task) }
54 .stack : { stack = .; _stack = .; }
56 . = ALIGN(4096); /* Init code and data */
58 .text.init : { *(.text.init) }
59 .data.init : { *(.data.init) }
62 .setup.init : { *(.setup.init) }
65 .initcall.init : { *(.initcall.init) }
68 .machvec.init : { *(.machvec.init) }
74 .data.page_aligned : { *(.data.idt) }
81 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
84 __bss_start = .; /* BSS */
91 /* When something in the kernel is NOT compiled as a module, the
92 * module cleanup code and data are put into these segments. Both
93 * can then be thrown away, as cleanup code is never called unless
102 /* Stabs debugging sections. */
103 .stab 0 : { *(.stab) }
104 .stabstr 0 : { *(.stabstr) }
105 .stab.excl 0 : { *(.stab.excl) }
106 .stab.exclstr 0 : { *(.stab.exclstr) }
107 .stab.index 0 : { *(.stab.index) }
108 .stab.indexstr 0 : { *(.stab.indexstr) }
109 .comment 0 : { *(.comment) }
110 /* DWARF debug sections.
111 Symbols in the DWARF debugging section are relative to the beginning
112 of the section so we begin .debug at 0. */
114 .debug 0 : { *(.debug) }
115 .line 0 : { *(.line) }
116 /* GNU DWARF 1 extensions */
117 .debug_srcinfo 0 : { *(.debug_srcinfo) }
118 .debug_sfnames 0 : { *(.debug_sfnames) }
119 /* DWARF 1.1 and DWARF 2 */
120 .debug_aranges 0 : { *(.debug_aranges) }
121 .debug_pubnames 0 : { *(.debug_pubnames) }
123 .debug_info 0 : { *(.debug_info) }
124 .debug_abbrev 0 : { *(.debug_abbrev) }
125 .debug_line 0 : { *(.debug_line) }
126 .debug_frame 0 : { *(.debug_frame) }
127 .debug_str 0 : { *(.debug_str) }
128 .debug_loc 0 : { *(.debug_loc) }
129 .debug_macinfo 0 : { *(.debug_macinfo) }
130 /* SGI/MIPS DWARF 2 extensions */
131 .debug_weaknames 0 : { *(.debug_weaknames) }
132 .debug_funcnames 0 : { *(.debug_funcnames) }
133 .debug_typenames 0 : { *(.debug_typenames) }
134 .debug_varnames 0 : { *(.debug_varnames) }
135 /* These must appear regardless of . */