1 |
gbeauche |
1.1 |
OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") |
2 |
|
|
OUTPUT_ARCH(i386) |
3 |
|
|
SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); |
4 |
|
|
ENTRY(_start) |
5 |
|
|
SECTIONS |
6 |
|
|
{ |
7 |
|
|
/* Read-only sections, merged into text segment: */ |
8 |
|
|
. = 0x70400000 + SIZEOF_HEADERS; |
9 |
|
|
.interp : { *(.interp) } |
10 |
|
|
.hash : { *(.hash) } |
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) } |
16 |
|
|
.rel.text : |
17 |
|
|
{ *(.rel.text) *(.rel.gnu.linkonce.t*) } |
18 |
|
|
.rela.text : |
19 |
|
|
{ *(.rela.text) *(.rela.gnu.linkonce.t*) } |
20 |
|
|
.rel.data : |
21 |
|
|
{ *(.rel.data) *(.rel.gnu.linkonce.d*) } |
22 |
|
|
.rela.data : |
23 |
|
|
{ *(.rela.data) *(.rela.gnu.linkonce.d*) } |
24 |
|
|
.rel.rodata : |
25 |
|
|
{ *(.rel.rodata) *(.rel.gnu.linkonce.r*) } |
26 |
|
|
.rela.rodata : |
27 |
|
|
{ *(.rela.rodata) *(.rela.gnu.linkonce.r*) } |
28 |
|
|
.rel.got : { *(.rel.got) } |
29 |
|
|
.rela.got : { *(.rela.got) } |
30 |
|
|
.rel.ctors : { *(.rel.ctors) } |
31 |
|
|
.rela.ctors : { *(.rela.ctors) } |
32 |
|
|
.rel.dtors : { *(.rel.dtors) } |
33 |
|
|
.rela.dtors : { *(.rela.dtors) } |
34 |
|
|
.rel.init : { *(.rel.init) } |
35 |
|
|
.rela.init : { *(.rela.init) } |
36 |
|
|
.rel.fini : { *(.rel.fini) } |
37 |
|
|
.rela.fini : { *(.rela.fini) } |
38 |
|
|
.rel.bss : { *(.rel.bss) } |
39 |
|
|
.rela.bss : { *(.rela.bss) } |
40 |
|
|
.rel.plt : { *(.rel.plt) } |
41 |
|
|
.rela.plt : { *(.rela.plt) } |
42 |
|
|
.init : { *(.init) } =0x47ff041f |
43 |
|
|
.text : |
44 |
|
|
{ |
45 |
|
|
*(.text) |
46 |
|
|
/* .gnu.warning sections are handled specially by elf32.em. */ |
47 |
|
|
*(.gnu.warning) |
48 |
|
|
*(.gnu.linkonce.t*) |
49 |
|
|
} =0x47ff041f |
50 |
|
|
_etext = .; |
51 |
|
|
PROVIDE (etext = .); |
52 |
|
|
.fini : { *(.fini) } =0x47ff041f |
53 |
|
|
. = ALIGN(32 / 8); |
54 |
|
|
PROVIDE (__preinit_array_start = .); |
55 |
|
|
.preinit_array : { *(.preinit_array) } |
56 |
|
|
PROVIDE (__preinit_array_end = .); |
57 |
|
|
PROVIDE (__init_array_start = .); |
58 |
|
|
.init_array : { *(.init_array) } |
59 |
|
|
PROVIDE (__init_array_end = .); |
60 |
|
|
PROVIDE (__fini_array_start = .); |
61 |
|
|
.fini_array : { *(.fini_array) } |
62 |
|
|
PROVIDE (__fini_array_end = .); |
63 |
|
|
.rodata : { *(.rodata) *(.gnu.linkonce.r*) } |
64 |
|
|
.rodata1 : { *(.rodata1) } |
65 |
|
|
.reginfo : { *(.reginfo) } |
66 |
|
|
/* Adjust the address for the data segment. We want to adjust up to |
67 |
|
|
the same address within the page on the next page up. */ |
68 |
|
|
. = ALIGN(0x100000) + (. & (0x100000 - 1)); |
69 |
|
|
.data : |
70 |
|
|
{ |
71 |
|
|
*(.data) |
72 |
|
|
*(.gnu.linkonce.d*) |
73 |
|
|
CONSTRUCTORS |
74 |
|
|
} |
75 |
|
|
.data1 : { *(.data1) } |
76 |
|
|
.ctors : |
77 |
|
|
{ |
78 |
|
|
*(.ctors) |
79 |
|
|
} |
80 |
|
|
.dtors : |
81 |
|
|
{ |
82 |
|
|
*(.dtors) |
83 |
|
|
} |
84 |
|
|
.plt : { *(.plt) } |
85 |
|
|
.got : { *(.got.plt) *(.got) } |
86 |
|
|
.dynamic : { *(.dynamic) } |
87 |
|
|
/* We want the small data sections together, so single-instruction offsets |
88 |
|
|
can access them all, and initialized data all before uninitialized, so |
89 |
|
|
we can shorten the on-disk segment size. */ |
90 |
|
|
.sdata : { *(.sdata) } |
91 |
|
|
_edata = .; |
92 |
|
|
PROVIDE (edata = .); |
93 |
|
|
__bss_start = .; |
94 |
|
|
.sbss : { *(.sbss) *(.scommon) } |
95 |
|
|
.bss : |
96 |
|
|
{ |
97 |
|
|
*(.dynbss) |
98 |
|
|
*(.bss) |
99 |
|
|
*(COMMON) |
100 |
|
|
} |
101 |
|
|
_end = . ; |
102 |
|
|
PROVIDE (end = .); |
103 |
|
|
/* Stabs debugging sections. */ |
104 |
|
|
.stab 0 : { *(.stab) } |
105 |
|
|
.stabstr 0 : { *(.stabstr) } |
106 |
|
|
.stab.excl 0 : { *(.stab.excl) } |
107 |
|
|
.stab.exclstr 0 : { *(.stab.exclstr) } |
108 |
|
|
.stab.index 0 : { *(.stab.index) } |
109 |
|
|
.stab.indexstr 0 : { *(.stab.indexstr) } |
110 |
|
|
.comment 0 : { *(.comment) } |
111 |
|
|
/* DWARF debug sections. |
112 |
|
|
Symbols in the DWARF debugging sections are relative to the beginning |
113 |
|
|
of the section so we begin them at 0. */ |
114 |
|
|
/* DWARF 1 */ |
115 |
|
|
.debug 0 : { *(.debug) } |
116 |
|
|
.line 0 : { *(.line) } |
117 |
|
|
/* GNU DWARF 1 extensions */ |
118 |
|
|
.debug_srcinfo 0 : { *(.debug_srcinfo) } |
119 |
|
|
.debug_sfnames 0 : { *(.debug_sfnames) } |
120 |
|
|
/* DWARF 1.1 and DWARF 2 */ |
121 |
|
|
.debug_aranges 0 : { *(.debug_aranges) } |
122 |
|
|
.debug_pubnames 0 : { *(.debug_pubnames) } |
123 |
|
|
/* DWARF 2 */ |
124 |
|
|
.debug_info 0 : { *(.debug_info) } |
125 |
|
|
.debug_abbrev 0 : { *(.debug_abbrev) } |
126 |
|
|
.debug_line 0 : { *(.debug_line) } |
127 |
|
|
.debug_frame 0 : { *(.debug_frame) } |
128 |
|
|
.debug_str 0 : { *(.debug_str) } |
129 |
|
|
.debug_loc 0 : { *(.debug_loc) } |
130 |
|
|
.debug_macinfo 0 : { *(.debug_macinfo) } |
131 |
|
|
/* SGI/MIPS DWARF 2 extensions */ |
132 |
|
|
.debug_weaknames 0 : { *(.debug_weaknames) } |
133 |
|
|
.debug_funcnames 0 : { *(.debug_funcnames) } |
134 |
|
|
.debug_typenames 0 : { *(.debug_typenames) } |
135 |
|
|
.debug_varnames 0 : { *(.debug_varnames) } |
136 |
|
|
/* These must appear regardless of . */ |
137 |
|
|
} |