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