1 /* Script for --shared -z combreloc: shared library, combine & sort relocs */
4 /* Do we need any of these for elf?
8 /* Read-only sections, merged into text segment: */
9 . = 0 + SIZEOF_HEADERS;
11 .dynsym : { *(.dynsym) }
12 .dynstr : { *(.dynstr) }
13 .gnu.version : { *(.gnu.version) }
14 .gnu.version_d : { *(.gnu.version_d) }
15 .gnu.version_r : { *(.gnu.version_r) }
19 *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*)
21 *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*)
23 *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*)
24 *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*)
25 *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*)
29 *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*)
34 *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
36 *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
37 *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
38 *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*)
39 *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*)
43 *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
45 .rel.plt : { *(.rel.plt) }
46 .rela.plt : { *(.rela.plt) }
54 *(.text .stub .text.* .gnu.linkonce.t.*)
55 KEEP (*(.text.*personality*))
56 /* .gnu.warning sections are handled specially by elf32.em. */
58 *(.glue_7t) *(.glue_7)
64 PROVIDE (__etext = .);
67 .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
68 .rodata1 : { *(.rodata1) }
69 .ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) }
71 .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
73 .eh_frame_hdr : { *(.eh_frame_hdr) }
74 .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
75 .gcc_except_table : ONLY_IF_RO { KEEP (*(.gcc_except_table)) *(.gcc_except_table.*) }
76 /* Adjust the address for the data segment. We want to adjust up to
77 the same address within the page on the next page up. */
78 . = ALIGN (0x8000) - ((0x8000 - .) & (0x8000 - 1)); . = DATA_SEGMENT_ALIGN (0x8000, 0x1000);
79 /* Exception handling */
80 .eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) }
81 .gcc_except_table : ONLY_IF_RW { KEEP (*(.gcc_except_table)) *(.gcc_except_table.*) }
82 /* Thread Local Storage sections */
83 .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
84 .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
85 /* Ensure the __preinit_array_start label is properly aligned. We
86 could instead move the label definition inside the section, but
87 the linker would then create the section even if it turns out to
88 be empty, which isn't pretty. */
90 .preinit_array : { KEEP (*(.preinit_array)) }
91 .init_array : { KEEP (*(.init_array)) }
92 .fini_array : { KEEP (*(.fini_array)) }
95 /* gcc uses crtbegin.o to find the start of
96 the constructors, so we make sure it is
97 first. Because this is a wildcard, it
98 doesn't matter if the user does not
99 actually link against crtbegin.o; the
100 linker won't look for a file to match a
101 wildcard. The wildcard also means that it
102 doesn't matter which directory crtbegin.o
104 KEEP (*crtbegin*.o(.ctors))
105 /* We don't want to include the .ctor section from
106 from the crtend.o file until after the sorted ctors.
107 The .ctor section from the crtend file contains the
108 end of ctors marker and it must be last */
109 KEEP (*(EXCLUDE_FILE (*crtend*.o ) .ctors))
110 KEEP (*(SORT(.ctors.*)))
115 KEEP (*crtbegin*.o(.dtors))
116 KEEP (*(EXCLUDE_FILE (*crtend*.o ) .dtors))
117 KEEP (*(SORT(.dtors.*)))
120 .jcr : { KEEP (*(.jcr)) }
121 .data.rel.ro : { *(.data.rel.ro.local) *(.data.rel.ro*) }
122 .dynamic : { *(.dynamic) }
123 .got : { *(.got.plt) *(.got) }
127 *(.data .data.* .gnu.linkonce.d.*)
128 KEEP (*(.gnu.linkonce.d.*personality*))
131 .data1 : { *(.data1) }
139 *(.bss .bss.* .gnu.linkonce.b.*)
141 /* Align here to ensure that the .bss section occupies space up to
142 _end. Align after .bss to ensure correct alignment even if the
143 .bss section disappears because there are no input sections. */
148 _bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
150 /* Stabs debugging sections. */
151 .stab 0 : { *(.stab) }
152 .stabstr 0 : { *(.stabstr) }
153 .stab.excl 0 : { *(.stab.excl) }
154 .stab.exclstr 0 : { *(.stab.exclstr) }
155 .stab.index 0 : { *(.stab.index) }
156 .stab.indexstr 0 : { *(.stab.indexstr) }
157 .comment 0 : { *(.comment) }
158 /* DWARF debug sections.
159 Symbols in the DWARF debugging sections are relative to the beginning
160 of the section so we begin them at 0. */
162 .debug 0 : { *(.debug) }
163 .line 0 : { *(.line) }
164 /* GNU DWARF 1 extensions */
165 .debug_srcinfo 0 : { *(.debug_srcinfo) }
166 .debug_sfnames 0 : { *(.debug_sfnames) }
167 /* DWARF 1.1 and DWARF 2 */
168 .debug_aranges 0 : { *(.debug_aranges) }
169 .debug_pubnames 0 : { *(.debug_pubnames) }
171 .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
172 .debug_abbrev 0 : { *(.debug_abbrev) }
173 .debug_line 0 : { *(.debug_line) }
174 .debug_frame 0 : { *(.debug_frame) }
175 .debug_str 0 : { *(.debug_str) }
176 .debug_loc 0 : { *(.debug_loc) }
177 .debug_macinfo 0 : { *(.debug_macinfo) }
178 /* SGI/MIPS DWARF 2 extensions */
179 .debug_weaknames 0 : { *(.debug_weaknames) }
180 .debug_funcnames 0 : { *(.debug_funcnames) }
181 .debug_typenames 0 : { *(.debug_typenames) }
182 .debug_varnames 0 : { *(.debug_varnames) }
183 .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
184 /DISCARD/ : { *(.note.GNU-stack) }