| 1 |
SECTIONS |
| 2 |
{ |
| 3 |
/* Read-only sections, merged into text segment: */ |
| 4 |
. = 0x100000; |
| 5 |
.hash : { *(.hash) } |
| 6 |
.dynsym : { *(.dynsym) } |
| 7 |
.dynstr : { *(.dynstr) } |
| 8 |
.gnu.version : { *(.gnu.version) } |
| 9 |
.gnu.version_d : { *(.gnu.version_d) } |
| 10 |
.gnu.version_r : { *(.gnu.version_r) } |
| 11 |
.rel.text : |
| 12 |
{ |
| 13 |
*(.rel.text) |
| 14 |
*(.rel.text.*) |
| 15 |
*(.rel.gnu.linkonce.t*) |
| 16 |
} |
| 17 |
.rela.text : |
| 18 |
{ |
| 19 |
*(.rela.text) |
| 20 |
*(.rela.text.*) |
| 21 |
*(.rela.gnu.linkonce.t*) |
| 22 |
} |
| 23 |
.rel.data : |
| 24 |
{ |
| 25 |
*(.rel.data) |
| 26 |
*(.rel.data.*) |
| 27 |
*(.rel.gnu.linkonce.d*) |
| 28 |
} |
| 29 |
.rela.data : |
| 30 |
{ |
| 31 |
*(.rela.data) |
| 32 |
*(.rela.data.*) |
| 33 |
*(.rela.gnu.linkonce.d*) |
| 34 |
} |
| 35 |
.rel.rodata : |
| 36 |
{ |
| 37 |
*(.rel.rodata) |
| 38 |
*(.rel.rodata.*) |
| 39 |
*(.rel.gnu.linkonce.r*) |
| 40 |
} |
| 41 |
.rela.rodata : |
| 42 |
{ |
| 43 |
*(.rela.rodata) |
| 44 |
*(.rela.rodata.*) |
| 45 |
*(.rela.gnu.linkonce.r*) |
| 46 |
} |
| 47 |
.rel.got : { *(.rel.got) } |
| 48 |
.rela.got : { *(.rela.got) } |
| 49 |
.rel.ctors : { *(.rel.ctors) } |
| 50 |
.rela.ctors : { *(.rela.ctors) } |
| 51 |
.rel.dtors : { *(.rel.dtors) } |
| 52 |
.rela.dtors : { *(.rela.dtors) } |
| 53 |
.rel.init : { *(.rel.init) } |
| 54 |
.rela.init : { *(.rela.init) } |
| 55 |
.rel.fini : { *(.rel.fini) } |
| 56 |
.rela.fini : { *(.rela.fini) } |
| 57 |
.rel.bss : { *(.rel.bss) } |
| 58 |
.rela.bss : { *(.rela.bss) } |
| 59 |
.rel.plt : { *(.rel.plt) } |
| 60 |
.rela.plt : { *(.rela.plt) } |
| 61 |
.rel.eh_frame : { *(.rel.eh_frame) } |
| 62 |
.rela.eh_frame : { *(.rela.eh_frame) } |
| 63 |
.init : { KEEP (*(.init)) } |
| 64 |
.plt : { *(.plt) } |
| 65 |
.text : |
| 66 |
{ |
| 67 |
*(.text) |
| 68 |
*(.text.*) |
| 69 |
*(.stub) |
| 70 |
/* .gnu.warning sections are handled specially by elf32.em. */ |
| 71 |
*(.gnu.warning) |
| 72 |
*(.gnu.linkonce.t*) |
| 73 |
} |
| 74 |
_etext = .; |
| 75 |
PROVIDE (etext = .); |
| 76 |
.fini : { KEEP (*(.fini)) } =0x9090 |
| 77 |
.rodata : |
| 78 |
{ |
| 79 |
*(.rodata) |
| 80 |
*(.rodata.*) |
| 81 |
*(.gnu.linkonce.r*) |
| 82 |
} |
| 83 |
.rodata1 : { *(.rodata1) } |
| 84 |
/* Adjust the address for the data segment. We want to adjust up to |
| 85 |
the same address within the page on the next page up. */ |
| 86 |
. = ALIGN(0x1000) + (. & (0x1000 - 1)); |
| 87 |
.data : |
| 88 |
{ |
| 89 |
*(.data) |
| 90 |
*(.data.*) |
| 91 |
*(.gnu.linkonce.d*) |
| 92 |
SORT(CONSTRUCTORS) |
| 93 |
} |
| 94 |
.data1 : { *(.data1) } |
| 95 |
.ctors : |
| 96 |
{ |
| 97 |
/* gcc uses crtbegin.o to find the start of the constructors, so |
| 98 |
we make sure it is first. Because this is a wildcard, it |
| 99 |
doesn't matter if the user does not actually link against |
| 100 |
crtbegin.o; the linker won't look for a file to match a |
| 101 |
wildcard. The wildcard also means that it doesn't matter which |
| 102 |
directory crtbegin.o is in. */ |
| 103 |
KEEP (*crtbegin.o(.ctors)) |
| 104 |
KEEP (*(SORT(.ctors.*))) |
| 105 |
KEEP (*(.ctors)) |
| 106 |
} |
| 107 |
.dtors : |
| 108 |
{ |
| 109 |
KEEP (*crtbegin.o(.dtors)) |
| 110 |
KEEP (*(SORT(.dtors.*))) |
| 111 |
KEEP (*(.dtors)) |
| 112 |
} |
| 113 |
.got : { *(.got.plt) *(.got) } |
| 114 |
.dynamic : { *(.dynamic) } |
| 115 |
/* We want the small data sections together, so single-instruction offsets |
| 116 |
can access them all, and initialized data all before uninitialized, so |
| 117 |
we can shorten the on-disk segment size. */ |
| 118 |
.sdata : { *(.sdata) *(.sdata.*) } |
| 119 |
_edata = .; |
| 120 |
PROVIDE (edata = .); |
| 121 |
__bss_start = .; |
| 122 |
.sbss : { *(.sbss) *(.scommon) } |
| 123 |
.bss : |
| 124 |
{ |
| 125 |
*(.dynbss) |
| 126 |
*(.bss) |
| 127 |
*(COMMON) |
| 128 |
/* Align here to ensure that the .bss section occupies space up to |
| 129 |
_end. Align after .bss to ensure correct alignment even if the |
| 130 |
.bss section disappears because there are no input sections. */ |
| 131 |
. = ALIGN(32 / 8); |
| 132 |
} |
| 133 |
. = ALIGN(32 / 8); |
| 134 |
_end = . ; |
| 135 |
PROVIDE (end = .); |
| 136 |
/* Stabs debugging sections. */ |
| 137 |
.stab 0 : { *(.stab) } |
| 138 |
.stabstr 0 : { *(.stabstr) } |
| 139 |
.stab.excl 0 : { *(.stab.excl) } |
| 140 |
.stab.exclstr 0 : { *(.stab.exclstr) } |
| 141 |
.stab.index 0 : { *(.stab.index) } |
| 142 |
.stab.indexstr 0 : { *(.stab.indexstr) } |
| 143 |
.comment 0 : { *(.comment) } |
| 144 |
/* DWARF debug sections. |
| 145 |
Symbols in the DWARF debugging sections are relative to the beginning |
| 146 |
of the section so we begin them at 0. */ |
| 147 |
/* DWARF 1 */ |
| 148 |
.debug 0 : { *(.debug) } |
| 149 |
.line 0 : { *(.line) } |
| 150 |
/* GNU DWARF 1 extensions */ |
| 151 |
.debug_srcinfo 0 : { *(.debug_srcinfo) } |
| 152 |
.debug_sfnames 0 : { *(.debug_sfnames) } |
| 153 |
/* DWARF 1.1 and DWARF 2 */ |
| 154 |
.debug_aranges 0 : { *(.debug_aranges) } |
| 155 |
.debug_pubnames 0 : { *(.debug_pubnames) } |
| 156 |
/* DWARF 2 */ |
| 157 |
.debug_info 0 : { *(.debug_info) } |
| 158 |
.debug_abbrev 0 : { *(.debug_abbrev) } |
| 159 |
.debug_line 0 : { *(.debug_line) } |
| 160 |
.debug_frame 0 : { *(.debug_frame) } |
| 161 |
.debug_str 0 : { *(.debug_str) } |
| 162 |
.debug_loc 0 : { *(.debug_loc) } |
| 163 |
.debug_macinfo 0 : { *(.debug_macinfo) } |
| 164 |
/* SGI/MIPS DWARF 2 extensions */ |
| 165 |
.debug_weaknames 0 : { *(.debug_weaknames) } |
| 166 |
.debug_funcnames 0 : { *(.debug_funcnames) } |
| 167 |
.debug_typenames 0 : { *(.debug_typenames) } |
| 168 |
.debug_varnames 0 : { *(.debug_varnames) } |
| 169 |
/* These must appear regardless of . */ |
| 170 |
} |