]> sourceware.org Git - newlib-cygwin.git/blame - libgloss/mips/dve.ld
Cygwin: sigfe: Fix a bug that signal handler destroys fpu states
[newlib-cygwin.git] / libgloss / mips / dve.ld
CommitLineData
03261851
RK
1/* Linker script for Densan DVE-R3900/20A board */
2
3ENTRY(_start)
710c0fc4 4STARTUP(crt0.o)
03261851
RK
5OUTPUT_ARCH("mips:3000")
6OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
7GROUP(-lc -ldve -lgcc)
8SEARCH_DIR(.)
9__DYNAMIC = 0;
10
11/*
12 * Allocate the stack to be at the top of memory, since the stack
13 * grows down
14 */
15PROVIDE (__stack = 0);
16/* PROVIDE (__global = 0); */
17
18/*
19 * Initalize some symbols to be zero so we can reference them in the
20 * crt0 without core dumping. These functions are all optional, but
21 * we do this so we can have our crt0 always use them if they exist.
22 * This is so BSPs work better when using the crt0 installed with gcc.
23 * We have to initalize them twice, so we multiple object file
24 * formats, as some prepend an underscore.
25 */
451e4528
JJ
26PROVIDE (hardware_exit_hook = 0);
27PROVIDE (hardware_hazard_hook = 0);
03261851
RK
28PROVIDE (hardware_init_hook = 0);
29PROVIDE (software_init_hook = 0);
30
31SECTIONS
32{
33 . = 0xA0040000;
34 .text : {
35 _ftext = . ;
576d455f 36 KEEP (*(.init))
03261851
RK
37 eprol = .;
38 *(.text)
39 *(.text.*)
3924c5c7 40 *(.gnu.linkonce.t.*)
03261851
RK
41 *(.mips16.fn.*)
42 *(.mips16.call.*)
43 PROVIDE (__runtime_reloc_start = .);
44 *(.rel.sdata)
45 PROVIDE (__runtime_reloc_stop = .);
576d455f 46 KEEP (*(.fini))
03261851
RK
47 etext = .;
48 _etext = .;
49 }
50
8c91dd0a 51 .eh_frame_hdr : { *(.eh_frame_hdr) }
ab2901c8
FS
52 .eh_frame :
53 {
54 /* The .eh_frame section from the crtend file contains the
55 end of eh_frame marker and it must be last. */
56 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
57 KEEP (*(.eh_frame))
58 }
8c91dd0a
RS
59 .gcc_except_table : { *(.gcc_except_table) }
60 .jcr : { KEEP (*(.jcr)) }
03261851
RK
61 .ctors :
62 {
63 /* gcc uses crtbegin.o to find the start of
64 the constructors, so we make sure it is
65 first. Because this is a wildcard, it
66 doesn't matter if the user does not
67 actually link against crtbegin.o; the
68 linker won't look for a file to match a
69 wildcard. The wildcard also means that it
70 doesn't matter which directory crtbegin.o
71 is in. */
72
73 KEEP (*crtbegin.o(.ctors))
74
75 /* We don't want to include the .ctor section from
76 from the crtend.o file until after the sorted ctors.
77 The .ctor section from the crtend file contains the
78 end of ctors marker and it must be last */
79
80 KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
81 KEEP (*(SORT(.ctors.*)))
82 KEEP (*(.ctors))
83 }
84
85 .dtors :
86 {
87 KEEP (*crtbegin.o(.dtors))
88 KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
89 KEEP (*(SORT(.dtors.*)))
90 KEEP (*(.dtors))
91 }
92
93 . = .;
94 .rodata : {
95 *(.rdata)
96 *(.rodata)
97 *(.rodata.*)
3924c5c7 98 *(.gnu.linkonce.r.*)
03261851
RK
99 }
100 _fdata = ALIGN(16);
a9a0d219 101 . = _fdata;
03261851
RK
102 .data : {
103 *(.data)
104 *(.data.*)
3924c5c7 105 *(.gnu.linkonce.d.*)
03261851
RK
106 CONSTRUCTORS
107 }
108 . = ALIGN(8);
109 _gp = . + 0x8000;
110 __global = _gp;
111 .lit8 : {
112 *(.lit8)
113 }
114 .lit4 : {
115 *(.lit4)
116 }
117 .sdata : {
118 *(.sdata)
119 *(.sdata.*)
650c3027 120 *(.gnu.linkonce.s.*)
03261851
RK
121 }
122 . = ALIGN(4);
123 edata = .;
124 _edata = .;
125 _fbss = .;
126 .sbss : {
127 *(.sbss)
650c3027
JJ
128 *(.sbss.*)
129 *(.gnu.linkonce.sb.*)
03261851
RK
130 *(.scommon)
131 }
132 .bss : {
133 _bss_start = . ;
134 *(.bss)
dd8ed8c6 135 *(.bss.*)
3924c5c7 136 *(.gnu.linkonce.b.*)
03261851
RK
137 *(COMMON)
138 }
139
6661a677 140 . = ALIGN(4);
03261851
RK
141 end = .;
142 _end = .;
143
144 /* DWARF debug sections.
145 Symbols in the DWARF debugging sections are relative to
146 the beginning of the section so we begin them at 0. */
147
148 /* DWARF 1 */
149 .debug 0 : { *(.debug) }
150 .line 0 : { *(.line) }
151
152 /* GNU DWARF 1 extensions */
153 .debug_srcinfo 0 : { *(.debug_srcinfo) }
154 .debug_sfnames 0 : { *(.debug_sfnames) }
155
156 /* DWARF 1.1 and DWARF 2 */
157 .debug_aranges 0 : { *(.debug_aranges) }
158 .debug_pubnames 0 : { *(.debug_pubnames) }
159
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) }
fece73ae 168 .debug_ranges 0 : { *(.debug_ranges) }
03261851
RK
169
170 /* SGI/MIPS DWARF 2 extensions */
171 .debug_weaknames 0 : { *(.debug_weaknames) }
172 .debug_funcnames 0 : { *(.debug_funcnames) }
173 .debug_typenames 0 : { *(.debug_typenames) }
174 .debug_varnames 0 : { *(.debug_varnames) }
175}
This page took 0.252842 seconds and 6 git commands to generate.