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) }
62 *(.stub .text.* .gnu.linkonce.t.*)
63 /* .gnu.warning sections are handled specially by elf32.em. */
70 .kstrtab : { *(.kstrtab) }
72 #include "asm/common.lds.S"
74 init.data : { *(.init.data) }
76 /* Ensure the __preinit_array_start label is properly aligned. We
77 could instead move the label definition inside the section, but
78 the linker would then create the section even if it turns out to
79 be empty, which isn't pretty. */
81 .preinit_array : { *(.preinit_array) }
82 .init_array : { *(.init_array) }
83 .fini_array : { *(.fini_array) }
85 . = ALIGN(KERNEL_STACK_SIZE); /* init_task */
87 *(.data .data.* .gnu.linkonce.d.*)
90 .data1 : { *(.data1) }
91 .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
92 .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
93 .eh_frame : { KEEP (*(.eh_frame)) }
94 .gcc_except_table : { *(.gcc_except_table) }
95 .dynamic : { *(.dynamic) }
97 /* gcc uses crtbegin.o to find the start of
98 the constructors, so we make sure it is
99 first. Because this is a wildcard, it
100 doesn't matter if the user does not
101 actually link against crtbegin.o; the
102 linker won't look for a file to match a
103 wildcard. The wildcard also means that it
104 doesn't matter which directory crtbegin.o
106 KEEP (*crtbegin.o(.ctors))
107 /* We don't want to include the .ctor section from
108 from the crtend.o file until after the sorted ctors.
109 The .ctor section from the crtend file contains the
110 end of ctors marker and it must be last */
111 KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
112 KEEP (*(SORT(.ctors.*)))
116 KEEP (*crtbegin.o(.dtors))
117 KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
118 KEEP (*(SORT(.dtors.*)))
121 .jcr : { KEEP (*(.jcr)) }
122 .got : { *(.got.plt) *(.got) }
128 *(.bss .bss.* .gnu.linkonce.b.*)
130 /* Align here to ensure that the .bss section occupies space up to
131 _end. Align after .bss to ensure correct alignment even if the
132 .bss section disappears because there are no input sections. */
138 /* Stabs debugging sections. */
139 .stab 0 : { *(.stab) }
140 .stabstr 0 : { *(.stabstr) }
141 .stab.excl 0 : { *(.stab.excl) }
142 .stab.exclstr 0 : { *(.stab.exclstr) }
143 .stab.index 0 : { *(.stab.index) }
144 .stab.indexstr 0 : { *(.stab.indexstr) }
145 .comment 0 : { *(.comment) }
146 /* DWARF debug sections.
147 Symbols in the DWARF debugging sections are relative to the beginning
148 of the section so we begin them at 0. */
150 .debug 0 : { *(.debug) }
151 .line 0 : { *(.line) }
152 /* GNU DWARF 1 extensions */
153 .debug_srcinfo 0 : { *(.debug_srcinfo) }
154 .debug_sfnames 0 : { *(.debug_sfnames) }
155 /* DWARF 1.1 and DWARF 2 */
156 .debug_aranges 0 : { *(.debug_aranges) }
157 .debug_pubnames 0 : { *(.debug_pubnames) }
159 .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
160 .debug_abbrev 0 : { *(.debug_abbrev) }
161 .debug_line 0 : { *(.debug_line) }
162 .debug_frame 0 : { *(.debug_frame) }
163 .debug_str 0 : { *(.debug_str) }
164 .debug_loc 0 : { *(.debug_loc) }
165 .debug_macinfo 0 : { *(.debug_macinfo) }
166 /* SGI/MIPS DWARF 2 extensions */
167 .debug_weaknames 0 : { *(.debug_weaknames) }
168 .debug_funcnames 0 : { *(.debug_funcnames) }
169 .debug_typenames 0 : { *(.debug_typenames) }
170 .debug_varnames 0 : { *(.debug_varnames) }