[xburst] Set -march=mips32
[openwrt.git] / target / linux / xburst / files-2.6.32 / arch / mips / boot / compressed / ld.script
1 OUTPUT_ARCH(mips)
2 ENTRY(startup)
3 SECTIONS
4 {
5 /* Read-only sections, merged into text segment: */
6
7 .init : { *(.init) } =0
8 .text :
9 {
10 _ftext = . ;
11 *(.text)
12 *(.rodata)
13 *(.rodata1)
14 /* .gnu.warning sections are handled specially by elf32.em. */
15 *(.gnu.warning)
16 } =0
17 .kstrtab : { *(.kstrtab) }
18
19 . = ALIGN(16); /* Exception table */
20 __start___ex_table = .;
21 __ex_table : { *(__ex_table) }
22 __stop___ex_table = .;
23
24 __start___dbe_table = .; /* Exception table for data bus errors */
25 __dbe_table : { *(__dbe_table) }
26 __stop___dbe_table = .;
27
28 __start___ksymtab = .; /* Kernel symbol table */
29 __ksymtab : { *(__ksymtab) }
30 __stop___ksymtab = .;
31
32 _etext = .;
33
34 . = ALIGN(8192);
35 .data.init_task : { *(.data.init_task) }
36
37 /* Startup code */
38 . = ALIGN(4096);
39 __init_begin = .;
40 .text.init : { *(.text.init) }
41 .data.init : { *(.data.init) }
42 . = ALIGN(16);
43 __setup_start = .;
44 .setup.init : { *(.setup.init) }
45 __setup_end = .;
46 __initcall_start = .;
47 .initcall.init : { *(.initcall.init) }
48 __initcall_end = .;
49 . = ALIGN(4096); /* Align double page for init_task_union */
50 __init_end = .;
51
52 . = ALIGN(4096);
53 .data.page_aligned : { *(.data.idt) }
54
55 . = ALIGN(32);
56 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
57
58 .fini : { *(.fini) } =0
59 .reginfo : { *(.reginfo) }
60 /* Adjust the address for the data segment. We want to adjust up to
61 the same address within the page on the next page up. It would
62 be more correct to do this:
63 . = .;
64 The current expression does not correctly handle the case of a
65 text segment ending precisely at the end of a page; it causes the
66 data segment to skip a page. The above expression does not have
67 this problem, but it will currently (2/95) cause BFD to allocate
68 a single segment, combining both text and data, for this case.
69 This will prevent the text segment from being shared among
70 multiple executions of the program; I think that is more
71 important than losing a page of the virtual address space (note
72 that no actual memory is lost; the page which is skipped can not
73 be referenced). */
74 . = .;
75 .data :
76 {
77 _fdata = . ;
78 *(.data)
79
80 /* Put the compressed image here, so bss is on the end. */
81 __image_begin = .;
82 *(.image)
83 __image_end = .;
84 /* Align the initial ramdisk image (INITRD) on page boundaries. */
85 . = ALIGN(4096);
86 __ramdisk_begin = .;
87 *(.initrd)
88 __ramdisk_end = .;
89 . = ALIGN(4096);
90
91 CONSTRUCTORS
92 }
93 .data1 : { *(.data1) }
94 _gp = . + 0x8000;
95 .lit8 : { *(.lit8) }
96 .lit4 : { *(.lit4) }
97 .ctors : { *(.ctors) }
98 .dtors : { *(.dtors) }
99 .got : { *(.got.plt) *(.got) }
100 .dynamic : { *(.dynamic) }
101 /* We want the small data sections together, so single-instruction offsets
102 can access them all, and initialized data all before uninitialized, so
103 we can shorten the on-disk segment size. */
104 .sdata : { *(.sdata) }
105 . = ALIGN(4);
106 _edata = .;
107 PROVIDE (edata = .);
108
109 __bss_start = .;
110 _fbss = .;
111 .sbss : { *(.sbss) *(.scommon) }
112 .bss :
113 {
114 *(.dynbss)
115 *(.bss)
116 *(COMMON)
117 . = ALIGN(4);
118 _end = . ;
119 PROVIDE (end = .);
120 }
121
122 /* Sections to be discarded */
123 /DISCARD/ :
124 {
125 *(.text.exit)
126 *(.data.exit)
127 *(.exitcall.exit)
128 }
129
130 /* This is the MIPS specific mdebug section. */
131 .mdebug : { *(.mdebug) }
132 /* These are needed for ELF backends which have not yet been
133 converted to the new style linker. */
134 .stab 0 : { *(.stab) }
135 .stabstr 0 : { *(.stabstr) }
136 /* DWARF debug sections.
137 Symbols in the .debug DWARF section are relative to the beginning of the
138 section so we begin .debug at 0. It's not clear yet what needs to happen
139 for the others. */
140 .debug 0 : { *(.debug) }
141 .debug_srcinfo 0 : { *(.debug_srcinfo) }
142 .debug_aranges 0 : { *(.debug_aranges) }
143 .debug_pubnames 0 : { *(.debug_pubnames) }
144 .debug_sfnames 0 : { *(.debug_sfnames) }
145 .line 0 : { *(.line) }
146 /* These must appear regardless of . */
147 .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
148 .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
149 .comment : { *(.comment) }
150 .note : { *(.note) }
151 }
This page took 0.0553 seconds and 5 git commands to generate.