toolchain: switch kernel 2.4 builds to gcc 4.2.4
[tomato.git] / tools / brcm / K24 / hndtools-mipsel-uclibc-4.1.2 / lib / ldscripts / elf64btsmip.xu
blob01ffd39bb7974b8051de2334780a00c5e537a04e
1 /* Script for ld -Ur: link w/out relocation, do create constructors */
2 OUTPUT_FORMAT("elf64-tradbigmips", "elf64-tradbigmips",
3               "elf64-tradlittlemips")
4 OUTPUT_ARCH(mips)
5  /* For some reason, the Solaris linker makes bad executables
6   if gld -r is used and the intermediate file has sections starting
7   at non-zero addresses.  Could be a Solaris ld bug, could be a GNU ld
8   bug.  But for now assigning the zero vmas works.  */
9 SECTIONS
11   /* Read-only sections, merged into text segment: */
12   .MIPS.options : { *(.MIPS.options) }
13   .note.gnu.build-id : { *(.note.gnu.build-id) }
14   .dynamic      0 : { *(.dynamic) }
15   .hash         0 : { *(.hash) }
16   .gnu.hash     0 : { *(.gnu.hash) }
17   .dynsym       0 : { *(.dynsym) }
18   .dynstr       0 : { *(.dynstr) }
19   .gnu.version  0 : { *(.gnu.version) }
20   .gnu.version_d 0: { *(.gnu.version_d) }
21   .gnu.version_r 0: { *(.gnu.version_r) }
22   .rel.init     0 : { *(.rel.init) }
23   .rela.init    0 : { *(.rela.init) }
24   .rel.text     0 : { *(.rel.text) }
25   .rela.text    0 : { *(.rela.text) }
26   .rel.fini     0 : { *(.rel.fini) }
27   .rela.fini    0 : { *(.rela.fini) }
28   .rel.rodata   0 : { *(.rel.rodata) }
29   .rela.rodata  0 : { *(.rela.rodata) }
30   .rel.data.rel.ro 0 : { *(.rel.data.rel.ro) }
31   .rela.data.rel.ro 0 : { *(.rela.data.rel.ro) }
32   .rel.data     0 : { *(.rel.data) }
33   .rela.data    0 : { *(.rela.data) }
34   .rel.tdata    0 : { *(.rel.tdata) }
35   .rela.tdata   0 : { *(.rela.tdata) }
36   .rel.tbss     0 : { *(.rel.tbss) }
37   .rela.tbss    0 : { *(.rela.tbss) }
38   .rel.ctors    0 : { *(.rel.ctors) }
39   .rela.ctors   0 : { *(.rela.ctors) }
40   .rel.dtors    0 : { *(.rel.dtors) }
41   .rela.dtors   0 : { *(.rela.dtors) }
42   .rel.got      0 : { *(.rel.got) }
43   .rela.got     0 : { *(.rela.got) }
44   .rel.dyn      0 : { *(.rel.dyn) }
45   .rel.sdata    0 : { *(.rel.sdata) }
46   .rela.sdata   0 : { *(.rela.sdata) }
47   .rel.sbss     0 : { *(.rel.sbss) }
48   .rela.sbss    0 : { *(.rela.sbss) }
49   .rel.sdata2   0 : { *(.rel.sdata2) }
50   .rela.sdata2  0 : { *(.rela.sdata2) }
51   .rel.sbss2    0 : { *(.rel.sbss2) }
52   .rela.sbss2   0 : { *(.rela.sbss2) }
53   .rel.bss      0 : { *(.rel.bss) }
54   .rela.bss     0 : { *(.rela.bss) }
55   .rel.plt      0 : { *(.rel.plt) }
56   .rela.plt     0 : { *(.rela.plt) }
57   .init         0 :
58   {
59     KEEP (*(.init))
60   } =0
61   .plt          0 : { *(.plt) }
62   .text         0 :
63   {
64     *(.text .stub)
65     /* .gnu.warning sections are handled specially by elf32.em.  */
66     *(.gnu.warning)
67   } =0
68   .fini         0 :
69   {
70     KEEP (*(.fini))
71   } =0
72   .rodata       0 : { *(.rodata) }
73   .rodata1      0 : { *(.rodata1) }
74   .sdata2       0 :
75   {
76     *(.sdata2)
77   }
78   .sbss2        0 : { *(.sbss2) }
79   .eh_frame_hdr : { *(.eh_frame_hdr) }
80   .eh_frame     0 : ONLY_IF_RO { KEEP (*(.eh_frame)) }
81   .gcc_except_table 0 : ONLY_IF_RO { *(.gcc_except_table .gcc_except_table.*) }
82   /* Adjust the address for the data segment.  We want to adjust up to
83      the same address within the page on the next page up.  */
84   /* Exception handling  */
85   .eh_frame     0 : ONLY_IF_RW { KEEP (*(.eh_frame)) }
86   .gcc_except_table 0 : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }
87   /* Thread Local Storage sections  */
88   .tdata        0 : { *(.tdata) }
89   .tbss         0 : { *(.tbss) }
90   .preinit_array   0 :
91   {
92     KEEP (*(.preinit_array))
93   }
94   .init_array   0 :
95   {
96      KEEP (*(SORT(.init_array.*)))
97      KEEP (*(.init_array))
98   }
99   .fini_array   0 :
100   {
101     KEEP (*(.fini_array))
102     KEEP (*(SORT(.fini_array.*)))
103   }
104   .jcr          0 : { KEEP (*(.jcr)) }
105   .data         0 :
106   {
107     *(.data)
108     SORT(CONSTRUCTORS)
109   }
110   .data1        0 : { *(.data1) }
111   .got.plt      0 : { *(.got.plt) }
112   .got          0 : { *(.got) }
113   /* We want the small data sections together, so single-instruction offsets
114      can access them all, and initialized data all before uninitialized, so
115      we can shorten the on-disk segment size.  */
116   .sdata        0 :
117   {
118     *(.sdata)
119   }
120   .lit8         0 : { *(.lit8) }
121   .lit4         0 : { *(.lit4) }
122   .srdata       0 : { *(.srdata) }
123   .sbss         0 :
124   {
125     *(.dynsbss)
126     *(.sbss)
127     *(.scommon)
128   }
129   .bss          0 :
130   {
131    *(.dynbss)
132    *(.bss)
133    *(COMMON)
134    /* Align here to ensure that the .bss section occupies space up to
135       _end.  Align after .bss to ensure correct alignment even if the
136       .bss section disappears because there are no input sections.
137       FIXME: Why do we need it? When there is no .bss section, we don't
138       pad the .data section.  */
139   }
140   /* Stabs debugging sections.  */
141   .stab          0 : { *(.stab) }
142   .stabstr       0 : { *(.stabstr) }
143   .stab.excl     0 : { *(.stab.excl) }
144   .stab.exclstr  0 : { *(.stab.exclstr) }
145   .stab.index    0 : { *(.stab.index) }
146   .stab.indexstr 0 : { *(.stab.indexstr) }
147   .comment       0 : { *(.comment) }
148   /* DWARF debug sections.
149      Symbols in the DWARF debugging sections are relative to the beginning
150      of the section so we begin them at 0.  */
151   /* DWARF 1 */
152   .debug          0 : { *(.debug) }
153   .line           0 : { *(.line) }
154   /* GNU DWARF 1 extensions */
155   .debug_srcinfo  0 : { *(.debug_srcinfo) }
156   .debug_sfnames  0 : { *(.debug_sfnames) }
157   /* DWARF 1.1 and DWARF 2 */
158   .debug_aranges  0 : { *(.debug_aranges) }
159   .debug_pubnames 0 : { *(.debug_pubnames) }
160   /* DWARF 2 */
161   .debug_info     0 : { *(.debug_info) }
162   .debug_abbrev   0 : { *(.debug_abbrev) }
163   .debug_line     0 : { *(.debug_line) }
164   .debug_frame    0 : { *(.debug_frame) }
165   .debug_str      0 : { *(.debug_str) }
166   .debug_loc      0 : { *(.debug_loc) }
167   .debug_macinfo  0 : { *(.debug_macinfo) }
168   /* SGI/MIPS DWARF 2 extensions */
169   .debug_weaknames 0 : { *(.debug_weaknames) }
170   .debug_funcnames 0 : { *(.debug_funcnames) }
171   .debug_typenames 0 : { *(.debug_typenames) }
172   .debug_varnames  0 : { *(.debug_varnames) }
173   /* DWARF 3 */
174   .debug_pubtypes 0 : { *(.debug_pubtypes) }
175   .debug_ranges   0 : { *(.debug_ranges) }
176   .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }
177   .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
178   .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }