]> sourceware.org Git - newlib-cygwin.git/blame - libgloss/mips/ddb.ld
Cygwin: console: Fix clean up conditions in close()
[newlib-cygwin.git] / libgloss / mips / ddb.ld
CommitLineData
03261851
RK
1/* The following TEXT start address leaves space for the monitor
2 workspace. */
3
4ENTRY(_start)
710c0fc4 5STARTUP(crt0.o)
03261851
RK
6OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
7GROUP(-lc -lpmon -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 . = 0xA0100000;
34 .text : {
35 _ftext = . ;
c50e4577 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 = .);
c50e4577 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 /* The .eh_frame section from the crtend file contains the
54 end of eh_frame marker and it must be last. */
55 KEEP (*(EXCLUDE_FILE (*crtend.o) .eh_frame))
56 KEEP (*(.eh_frame))
57 }
8c91dd0a
RS
58 .gcc_except_table : { *(.gcc_except_table) }
59 .jcr : { KEEP (*(.jcr)) }
03261851
RK
60 .ctors :
61 {
62 /* gcc uses crtbegin.o to find the start of
63 the constructors, so we make sure it is
64 first. Because this is a wildcard, it
65 doesn't matter if the user does not
66 actually link against crtbegin.o; the
67 linker won't look for a file to match a
68 wildcard. The wildcard also means that it
69 doesn't matter which directory crtbegin.o
70 is in. */
71
72 KEEP (*crtbegin.o(.ctors))
73
74 /* We don't want to include the .ctor section from
75 from the crtend.o file until after the sorted ctors.
76 The .ctor section from the crtend file contains the
77 end of ctors marker and it must be last */
78
79 KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
80 KEEP (*(SORT(.ctors.*)))
81 KEEP (*(.ctors))
82 }
83
84 .dtors :
85 {
86 KEEP (*crtbegin.o(.dtors))
87 KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
88 KEEP (*(SORT(.dtors.*)))
89 KEEP (*(.dtors))
90 }
91
92 . = .;
93 .rdata : {
94 *(.rdata)
95 *(.rodata)
96 *(.rodata.*)
3924c5c7 97 *(.gnu.linkonce.r.*)
03261851
RK
98 }
99 _fdata = ALIGN(16);
a9a0d219 100 . = _fdata;
03261851
RK
101 .data : {
102 *(.data)
103 *(.data.*)
3924c5c7 104 *(.gnu.linkonce.d.*)
03261851
RK
105 }
106 . = ALIGN(8);
107 _gp = . + 0x8000;
108 __global = _gp;
109 .lit8 : {
110 *(.lit8)
111 }
112 .lit4 : {
113 *(.lit4)
114 }
115 .sdata : {
116 *(.sdata)
117 *(.sdata.*)
650c3027 118 *(.gnu.linkonce.s.*)
03261851
RK
119 }
120 . = ALIGN(4);
121 edata = .;
122 _edata = .;
123 _fbss = .;
124 .sbss : {
125 *(.sbss)
650c3027
JJ
126 *(.sbss.*)
127 *(.gnu.linkonce.sb.*)
03261851
RK
128 *(.scommon)
129 }
130 .bss : {
131 _bss_start = . ;
132 *(.bss)
dd8ed8c6 133 *(.bss.*)
3924c5c7 134 *(.gnu.linkonce.b.*)
03261851
RK
135 *(COMMON)
136 }
137
6661a677 138 . = ALIGN(4);
03261851
RK
139 end = .;
140 _end = .;
141
142 /* DWARF debug sections.
143 Symbols in the DWARF debugging sections are relative to
144 the beginning of the section so we begin them at 0. */
145
146 /* DWARF 1 */
147 .debug 0 : { *(.debug) }
148 .line 0 : { *(.line) }
149
150 /* GNU DWARF 1 extensions */
151 .debug_srcinfo 0 : { *(.debug_srcinfo) }
152 .debug_sfnames 0 : { *(.debug_sfnames) }
153
154 /* DWARF 1.1 and DWARF 2 */
155 .debug_aranges 0 : { *(.debug_aranges) }
156 .debug_pubnames 0 : { *(.debug_pubnames) }
157
158 /* DWARF 2 */
159 .debug_info 0 : { *(.debug_info) }
160 .debug_abbrev 0 : { *(.debug_abbrev) }
161 .debug_line 0 : { *(.debug_line) }
162 .debug_frame 0 : { *(.debug_frame) }
163 .debug_str 0 : { *(.debug_str) }
164 .debug_loc 0 : { *(.debug_loc) }
165 .debug_macinfo 0 : { *(.debug_macinfo) }
fece73ae 166 .debug_ranges 0 : { *(.debug_ranges) }
03261851
RK
167
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}
This page took 0.238632 seconds and 6 git commands to generate.