1 #include <asm-generic/vmlinux.lds.h>
3 OUTPUT_FORMAT(ELF_FORMAT)
10 . = START + SIZEOF_HEADERS;
11 .interp : { *(.interp) }
13 . = ALIGN(4096); /* Init code and data */
24 /* Read-only sections, merged into text segment: */
26 .dynsym : { *(.dynsym) }
27 .dynstr : { *(.dynstr) }
28 .gnu.version : { *(.gnu.version) }
29 .gnu.version_d : { *(.gnu.version_d) }
30 .gnu.version_r : { *(.gnu.version_r) }
31 .rel.init : { *(.rel.init) }
32 .rela.init : { *(.rela.init) }
33 .rel.text : { *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) }
34 .rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) }
35 .rel.fini : { *(.rel.fini) }
36 .rela.fini : { *(.rela.fini) }
37 .rel.rodata : { *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) }
38 .rela.rodata : { *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) }
39 .rel.data : { *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) }
40 .rela.data : { *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) }
41 .rel.tdata : { *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) }
42 .rela.tdata : { *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) }
43 .rel.tbss : { *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) }
44 .rela.tbss : { *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) }
45 .rel.ctors : { *(.rel.ctors) }
46 .rela.ctors : { *(.rela.ctors) }
47 .rel.dtors : { *(.rel.dtors) }
48 .rela.dtors : { *(.rela.dtors) }
49 .rel.got : { *(.rel.got) }
50 .rela.got : { *(.rela.got) }
51 .rel.bss : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) }
52 .rela.bss : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) }
53 .rel.plt : { *(.rel.plt) }
54 .rela.plt : { *(.rela.plt) }
64 *(.stub .text.* .gnu.linkonce.t.*)
65 /* .gnu.warning sections are handled specially by elf32.em. */
72 .kstrtab : { *(.kstrtab) }
74 #include "asm/common.lds.S"
76 init.data : { *(.init.data) }
78 /* Ensure the __preinit_array_start label is properly aligned. We
79 could instead move the label definition inside the section, but
80 the linker would then create the section even if it turns out to
81 be empty, which isn't pretty. */
83 .preinit_array : { *(.preinit_array) }
84 .init_array : { *(.init_array) }
85 .fini_array : { *(.fini_array) }
87 . = ALIGN(KERNEL_STACK_SIZE); /* init_task */
89 *(.data .data.* .gnu.linkonce.d.*)
92 .data1 : { *(.data1) }
93 .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
94 .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
95 .eh_frame : { KEEP (*(.eh_frame)) }
96 .gcc_except_table : { *(.gcc_except_table) }
97 .dynamic : { *(.dynamic) }
99 /* gcc uses crtbegin.o to find the start of
100 the constructors, so we make sure it is
101 first. Because this is a wildcard, it
102 doesn't matter if the user does not
103 actually link against crtbegin.o; the
104 linker won't look for a file to match a
105 wildcard. The wildcard also means that it
106 doesn't matter which directory crtbegin.o
108 KEEP (*crtbegin.o(.ctors))
109 /* We don't want to include the .ctor section from
110 from the crtend.o file until after the sorted ctors.
111 The .ctor section from the crtend file contains the
112 end of ctors marker and it must be last */
113 KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
114 KEEP (*(SORT(.ctors.*)))
118 KEEP (*crtbegin.o(.dtors))
119 KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
120 KEEP (*(SORT(.dtors.*)))
123 .jcr : { KEEP (*(.jcr)) }
124 .got : { *(.got.plt) *(.got) }
130 *(.bss .bss.* .gnu.linkonce.b.*)
132 /* Align here to ensure that the .bss section occupies space up to
133 _end. Align after .bss to ensure correct alignment even if the
134 .bss section disappears because there are no input sections. */
140 /* Stabs debugging sections. */
141 .stab 0 : { *(.stab) }
142 .stabstr 0 : { *(.stabstr) }
143 .stab.excl 0 : { *(.stab.excl) }
144 .stab.exclstr 0 : { *(.stab.exclstr) }
145 .stab.index 0 : { *(.stab.index) }
146 .stab.indexstr 0 : { *(.stab.indexstr) }
147 .comment 0 : { *(.comment) }
148 /* DWARF debug sections.
149 Symbols in the DWARF debugging sections are relative to the beginning
150 of the section so we begin them at 0. */
152 .debug 0 : { *(.debug) }
153 .line 0 : { *(.line) }
154 /* GNU DWARF 1 extensions */
155 .debug_srcinfo 0 : { *(.debug_srcinfo) }
156 .debug_sfnames 0 : { *(.debug_sfnames) }
157 /* DWARF 1.1 and DWARF 2 */
158 .debug_aranges 0 : { *(.debug_aranges) }
159 .debug_pubnames 0 : { *(.debug_pubnames) }
161 .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
162 .debug_abbrev 0 : { *(.debug_abbrev) }
163 .debug_line 0 : { *(.debug_line) }
164 .debug_frame 0 : { *(.debug_frame) }
165 .debug_str 0 : { *(.debug_str) }
166 .debug_loc 0 : { *(.debug_loc) }
167 .debug_macinfo 0 : { *(.debug_macinfo) }
168 /* SGI/MIPS DWARF 2 extensions */
169 .debug_weaknames 0 : { *(.debug_weaknames) }
170 .debug_funcnames 0 : { *(.debug_funcnames) }
171 .debug_typenames 0 : { *(.debug_typenames) }
172 .debug_varnames 0 : { *(.debug_varnames) }