1 OUTPUT_FORMAT(ELF_FORMAT)
6 SEARCH_DIR("/usr/local/i686-pc-linux-gnu/lib"); SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib");
7 /* Do we need any of these for elf?
11 . = START + SIZEOF_HEADERS;
12 .interp : { *(.interp) }
15 . = ALIGN(4096); /* Init code and data */
18 .text.init : { *(.text.init) }
22 /* Read-only sections, merged into text segment: */
24 .dynsym : { *(.dynsym) }
25 .dynstr : { *(.dynstr) }
26 .gnu.version : { *(.gnu.version) }
27 .gnu.version_d : { *(.gnu.version_d) }
28 .gnu.version_r : { *(.gnu.version_r) }
29 .rel.init : { *(.rel.init) }
30 .rela.init : { *(.rela.init) }
31 .rel.text : { *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) }
32 .rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) }
33 .rel.fini : { *(.rel.fini) }
34 .rela.fini : { *(.rela.fini) }
35 .rel.rodata : { *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) }
36 .rela.rodata : { *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) }
37 .rel.data : { *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) }
38 .rela.data : { *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) }
39 .rel.tdata : { *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) }
40 .rela.tdata : { *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) }
41 .rel.tbss : { *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) }
42 .rela.tbss : { *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) }
43 .rel.ctors : { *(.rel.ctors) }
44 .rela.ctors : { *(.rela.ctors) }
45 .rel.dtors : { *(.rel.dtors) }
46 .rela.dtors : { *(.rela.dtors) }
47 .rel.got : { *(.rel.got) }
48 .rela.got : { *(.rela.got) }
49 .rel.bss : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) }
50 .rela.bss : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) }
51 .rel.plt : { *(.rel.plt) }
52 .rela.plt : { *(.rela.plt) }
58 *(.text .stub .text.* .gnu.linkonce.t.*)
59 /* .gnu.warning sections are handled specially by elf32.em. */
66 .kstrtab : { *(.kstrtab) }
68 #include "asm/common.lds.S"
70 .data.init : { *(.data.init) }
72 /* Ensure the __preinit_array_start label is properly aligned. We
73 could instead move the label definition inside the section, but
74 the linker would then create the section even if it turns out to
75 be empty, which isn't pretty. */
77 .preinit_array : { *(.preinit_array) }
78 .init_array : { *(.init_array) }
79 .fini_array : { *(.fini_array) }
81 . = ALIGN(KERNEL_STACK_SIZE); /* init_task */
83 *(.data .data.* .gnu.linkonce.d.*)
86 .data1 : { *(.data1) }
87 .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
88 .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
89 .eh_frame : { KEEP (*(.eh_frame)) }
90 .gcc_except_table : { *(.gcc_except_table) }
91 .dynamic : { *(.dynamic) }
93 /* gcc uses crtbegin.o to find the start of
94 the constructors, so we make sure it is
95 first. Because this is a wildcard, it
96 doesn't matter if the user does not
97 actually link against crtbegin.o; the
98 linker won't look for a file to match a
99 wildcard. The wildcard also means that it
100 doesn't matter which directory crtbegin.o
102 KEEP (*crtbegin.o(.ctors))
103 /* We don't want to include the .ctor section from
104 from the crtend.o file until after the sorted ctors.
105 The .ctor section from the crtend file contains the
106 end of ctors marker and it must be last */
107 KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
108 KEEP (*(SORT(.ctors.*)))
112 KEEP (*crtbegin.o(.dtors))
113 KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
114 KEEP (*(SORT(.dtors.*)))
117 .jcr : { KEEP (*(.jcr)) }
118 .got : { *(.got.plt) *(.got) }
124 *(.bss .bss.* .gnu.linkonce.b.*)
126 /* Align here to ensure that the .bss section occupies space up to
127 _end. Align after .bss to ensure correct alignment even if the
128 .bss section disappears because there are no input sections. */
134 /* Stabs debugging sections. */
135 .stab 0 : { *(.stab) }
136 .stabstr 0 : { *(.stabstr) }
137 .stab.excl 0 : { *(.stab.excl) }
138 .stab.exclstr 0 : { *(.stab.exclstr) }
139 .stab.index 0 : { *(.stab.index) }
140 .stab.indexstr 0 : { *(.stab.indexstr) }
141 .comment 0 : { *(.comment) }
142 /* DWARF debug sections.
143 Symbols in the DWARF debugging sections are relative to the beginning
144 of the section so we begin them at 0. */
146 .debug 0 : { *(.debug) }
147 .line 0 : { *(.line) }
148 /* GNU DWARF 1 extensions */
149 .debug_srcinfo 0 : { *(.debug_srcinfo) }
150 .debug_sfnames 0 : { *(.debug_sfnames) }
151 /* DWARF 1.1 and DWARF 2 */
152 .debug_aranges 0 : { *(.debug_aranges) }
153 .debug_pubnames 0 : { *(.debug_pubnames) }
155 .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
156 .debug_abbrev 0 : { *(.debug_abbrev) }
157 .debug_line 0 : { *(.debug_line) }
158 .debug_frame 0 : { *(.debug_frame) }
159 .debug_str 0 : { *(.debug_str) }
160 .debug_loc 0 : { *(.debug_loc) }
161 .debug_macinfo 0 : { *(.debug_macinfo) }
162 /* SGI/MIPS DWARF 2 extensions */
163 .debug_weaknames 0 : { *(.debug_weaknames) }
164 .debug_funcnames 0 : { *(.debug_funcnames) }
165 .debug_typenames 0 : { *(.debug_typenames) }
166 .debug_varnames 0 : { *(.debug_varnames) }