root / arm.ld @ a412ac57
History | View | Annotate | Download (4 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 | 6380ab5e | bellard | .reginfo : { *(.reginfo) } |
57 | 6380ab5e | bellard | /* Adjust the address for the data segment. We want to adjust up to |
58 | 6380ab5e | bellard | the same address within the page on the next page up. */ |
59 | 6380ab5e | bellard | . = ALIGN(0x100000) + (. & (0x100000 - 1)); |
60 | 6380ab5e | bellard | .data : |
61 | 6380ab5e | bellard | { |
62 | 6380ab5e | bellard | *(.data) |
63 | 6380ab5e | bellard | *(.gnu.linkonce.d*) |
64 | 6380ab5e | bellard | CONSTRUCTORS |
65 | 6380ab5e | bellard | } |
66 | 6380ab5e | bellard | .data1 : { *(.data1) } |
67 | 6380ab5e | bellard | .ctors : |
68 | 6380ab5e | bellard | { |
69 | 6380ab5e | bellard | *(.ctors) |
70 | 6380ab5e | bellard | } |
71 | 6380ab5e | bellard | .dtors : |
72 | 6380ab5e | bellard | { |
73 | 6380ab5e | bellard | *(.dtors) |
74 | 6380ab5e | bellard | } |
75 | 6380ab5e | bellard | .plt : { *(.plt) } |
76 | 6380ab5e | bellard | .got : { *(.got.plt) *(.got) } |
77 | 6380ab5e | bellard | .dynamic : { *(.dynamic) } |
78 | 6380ab5e | bellard | /* We want the small data sections together, so single-instruction offsets |
79 | 6380ab5e | bellard | can access them all, and initialized data all before uninitialized, so |
80 | 6380ab5e | bellard | we can shorten the on-disk segment size. */ |
81 | 6380ab5e | bellard | .sdata : { *(.sdata) } |
82 | 6380ab5e | bellard | _edata = .; |
83 | 6380ab5e | bellard | PROVIDE (edata = .); |
84 | 6380ab5e | bellard | __bss_start = .; |
85 | 6380ab5e | bellard | .sbss : { *(.sbss) *(.scommon) } |
86 | 6380ab5e | bellard | .bss : |
87 | 6380ab5e | bellard | { |
88 | 6380ab5e | bellard | *(.dynbss) |
89 | 6380ab5e | bellard | *(.bss) |
90 | 6380ab5e | bellard | *(COMMON) |
91 | 6380ab5e | bellard | } |
92 | 6380ab5e | bellard | _end = . ; |
93 | 6380ab5e | bellard | PROVIDE (end = .); |
94 | 6380ab5e | bellard | /* Stabs debugging sections. */ |
95 | 6380ab5e | bellard | .stab 0 : { *(.stab) } |
96 | 6380ab5e | bellard | .stabstr 0 : { *(.stabstr) } |
97 | 6380ab5e | bellard | .stab.excl 0 : { *(.stab.excl) } |
98 | 6380ab5e | bellard | .stab.exclstr 0 : { *(.stab.exclstr) } |
99 | 6380ab5e | bellard | .stab.index 0 : { *(.stab.index) } |
100 | 6380ab5e | bellard | .stab.indexstr 0 : { *(.stab.indexstr) } |
101 | 6380ab5e | bellard | .comment 0 : { *(.comment) } |
102 | 6380ab5e | bellard | /* DWARF debug sections. |
103 | 6380ab5e | bellard | Symbols in the DWARF debugging sections are relative to the beginning |
104 | 6380ab5e | bellard | of the section so we begin them at 0. */ |
105 | 6380ab5e | bellard | /* DWARF 1 */ |
106 | 6380ab5e | bellard | .debug 0 : { *(.debug) } |
107 | 6380ab5e | bellard | .line 0 : { *(.line) } |
108 | 6380ab5e | bellard | /* GNU DWARF 1 extensions */ |
109 | 6380ab5e | bellard | .debug_srcinfo 0 : { *(.debug_srcinfo) } |
110 | 6380ab5e | bellard | .debug_sfnames 0 : { *(.debug_sfnames) } |
111 | 6380ab5e | bellard | /* DWARF 1.1 and DWARF 2 */ |
112 | 6380ab5e | bellard | .debug_aranges 0 : { *(.debug_aranges) } |
113 | 6380ab5e | bellard | .debug_pubnames 0 : { *(.debug_pubnames) } |
114 | 6380ab5e | bellard | /* DWARF 2 */ |
115 | 6380ab5e | bellard | .debug_info 0 : { *(.debug_info) } |
116 | 6380ab5e | bellard | .debug_abbrev 0 : { *(.debug_abbrev) } |
117 | 6380ab5e | bellard | .debug_line 0 : { *(.debug_line) } |
118 | 6380ab5e | bellard | .debug_frame 0 : { *(.debug_frame) } |
119 | 6380ab5e | bellard | .debug_str 0 : { *(.debug_str) } |
120 | 6380ab5e | bellard | .debug_loc 0 : { *(.debug_loc) } |
121 | 6380ab5e | bellard | .debug_macinfo 0 : { *(.debug_macinfo) } |
122 | 6380ab5e | bellard | /* SGI/MIPS DWARF 2 extensions */ |
123 | 6380ab5e | bellard | .debug_weaknames 0 : { *(.debug_weaknames) } |
124 | 6380ab5e | bellard | .debug_funcnames 0 : { *(.debug_funcnames) } |
125 | 6380ab5e | bellard | .debug_typenames 0 : { *(.debug_typenames) } |
126 | 6380ab5e | bellard | .debug_varnames 0 : { *(.debug_varnames) } |
127 | 6380ab5e | bellard | /* These must appear regardless of . */ |
128 | 6380ab5e | bellard | } |