]> sourceware.org Git - newlib-cygwin.git/blob - libgloss/mips/array.ld
If -mfp32, do not enable 64-bit FPR registers on mips3
[newlib-cygwin.git] / libgloss / mips / array.ld
1 /*
2 * memory map assumed by prom and standalone system
3 *
4 * physical kseg1 use
5 *
6 * 0x1fc20000 0xbfc20000
7 * to prom text and read-only data
8 * 0x1fc00000 0xbfc00000 (in cpu board "prom space")
9 *
10 * (Top of RAM - 8K) downward sash and standalone program stack
11 * | ( - 8K to preserve kernel message bufs)
12 * V (standalone programs grow their stack
13 * immediately below sash's stack)
14 *
15 * ^
16 * |
17 * 0x00100000 0xa0100000 upward sash program text, data, and bss
18 *
19 * ^
20 * |
21 * 0x00020000 0xa0020000 upward standalone program text, data, and bss
22 * (kernel is loaded here, also)
23 *
24 * 0x0001ffff 0xa001ffff downward dbgmon stack
25 * |
26 * V
27 *
28 * ^
29 * |
30 * 0x00010000 0xa0010000 upward dbgmon text, data, and bss
31 *
32 * 0x0000ffff 0xa000ffff downward prom monitor stack
33 * |
34 * V
35 *
36 * ^
37 * |
38 * 0x00000500 0xa0000500 upward prom monitor bss
39 *
40 * 0x000004ff 0xa00004ff
41 * to restart block
42 * 0x00000400 0xa0000400
43 *
44 * 0x000003ff 0xa00003ff
45 * to general exception code
46 * 0x00000080 0xa0000080 (note cpu addresses as 0x80000080!)
47 *
48 * 0x0000007f 0xa000007f
49 * to utlbmiss exception code
50 * 0x00000000 0xa0000000 (note cpu addresses as 0x80000000!)
51 */
52
53 /* Uncomment this if you want srecords.
54 OUTPUT_FORMAT(srec)
55 */
56 ENTRY(start)
57 STARTUP(crt0.o)
58 INPUT(array.o)
59 SEARCH_DIR(.)
60 __DYNAMIC = 0;
61
62 /*
63 * Allocate the stack to be at the top of memory, since the stack
64 * grows down
65 *
66 PROVIDE (__stack = 1M - 8);
67 */
68
69 /*
70 * Initalize some symbols to be zero so we can reference them in the
71 * crt0 without core dumping. These functions are all optional, but
72 * we do this so we can have our crt0 always use them if they exist.
73 * This is so BSPs work better when using the crt0 installed with gcc.
74 * We have to initalize them twice, so we multiple object file
75 * formats, as some prepend an underscore.
76 */
77 PROVIDE (hardware_init_hook = 0);
78 PROVIDE (software_init_hook = 0);
79
80 SECTIONS
81 {
82 . = 0x80020000;
83 .text : {
84 _ftext = . ;
85 *(.init)
86 eprol = .;
87 *(.text)
88 *(.text.*)
89 *(.gnu.linkonce.t*)
90 *(.mips16.fn.*)
91 *(.mips16.call.*)
92 PROVIDE (__runtime_reloc_start = .);
93 *(.rel.sdata)
94 PROVIDE (__runtime_reloc_stop = .);
95 *(.fini)
96 etext = .;
97 _etext = .;
98 }
99
100 .ctors :
101 {
102 /* gcc uses crtbegin.o to find the start of
103 the constructors, so we make sure it is
104 first. Because this is a wildcard, it
105 doesn't matter if the user does not
106 actually link against crtbegin.o; the
107 linker won't look for a file to match a
108 wildcard. The wildcard also means that it
109 doesn't matter which directory crtbegin.o
110 is in. */
111
112 KEEP (*crtbegin.o(.ctors))
113
114 /* We don't want to include the .ctor section from
115 from the crtend.o file until after the sorted ctors.
116 The .ctor section from the crtend file contains the
117 end of ctors marker and it must be last */
118
119 KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
120 KEEP (*(SORT(.ctors.*)))
121 KEEP (*(.ctors))
122 }
123
124 .dtors :
125 {
126 KEEP (*crtbegin.o(.dtors))
127 KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
128 KEEP (*(SORT(.dtors.*)))
129 KEEP (*(.dtors))
130 }
131
132 . = .;
133 .rdata : {
134 *(.rdata)
135 *(.rodata)
136 *(.rodata.*)
137 *(.gnu.linkonce.r*)
138 }
139 _fdata = ALIGN(16);
140 .data : {
141 *(.data)
142 *(.data.*)
143 *(.gnu.linkonce.d*)
144 }
145 _gp = ALIGN(16) + 0x8000;
146 .lit8 : {
147 *(.lit8)
148 }
149 .lit4 : {
150 *(.lit4)
151 }
152 .sdata : {
153 *(.sdata)
154 *(.sdata.*)
155 *(.gnu.linkonce.s*)
156 }
157 edata = .;
158 _edata = .;
159 _fbss = .;
160 .sbss : {
161 *(.sbss)
162 *(.scommon)
163 }
164 .bss : {
165 _bss_start = . ;
166 *(.bss)
167 *(COMMON)
168 }
169 end = .;
170 _end = .;
171 }
This page took 0.042523 seconds and 5 git commands to generate.