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