]> sourceware.org Git - newlib-cygwin.git/blame - libgloss/mips/lsi.ld
2003-05-26 Eric Christopher <echristo@redhat.com>
[newlib-cygwin.git] / libgloss / mips / lsi.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_ARCH("mips:4000")
7OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
8GROUP(-lc -llsi -lgcc)
9SEARCH_DIR(.)
10__DYNAMIC = 0;
11
12/*
13 * Allocate the stack to be at the top of memory, since the stack
14 * grows down
15 */
16PROVIDE (__stack = 0);
17/* PROVIDE (__global = 0); */
18
19/*
20 * Initalize some symbols to be zero so we can reference them in the
21 * crt0 without core dumping. These functions are all optional, but
22 * we do this so we can have our crt0 always use them if they exist.
23 * This is so BSPs work better when using the crt0 installed with gcc.
24 * We have to initalize them twice, so we multiple object file
25 * formats, as some prepend an underscore.
26 */
451e4528
JJ
27PROVIDE (hardware_exit_hook = 0);
28PROVIDE (hardware_hazard_hook = 0);
03261851
RK
29PROVIDE (hardware_init_hook = 0);
30PROVIDE (software_init_hook = 0);
31
32SECTIONS
33{
34 . = 0xA0020000;
35 .text : {
36 _ftext = . ;
37 *(.init)
38 eprol = .;
39 *(.text)
40 *(.text.*)
41 *(.gnu.linkonce.t*)
42 PROVIDE (__runtime_reloc_start = .);
43 *(.rel.sdata)
44 PROVIDE (__runtime_reloc_stop = .);
45 *(.fini)
46 etext = .;
47 _etext = .;
48 }
49
50 .ctors :
51 {
52 /* gcc uses crtbegin.o to find the start of
53 the constructors, so we make sure it is
54 first. Because this is a wildcard, it
55 doesn't matter if the user does not
56 actually link against crtbegin.o; the
57 linker won't look for a file to match a
58 wildcard. The wildcard also means that it
59 doesn't matter which directory crtbegin.o
60 is in. */
61
62 KEEP (*crtbegin.o(.ctors))
63
64 /* We don't want to include the .ctor section from
65 from the crtend.o file until after the sorted ctors.
66 The .ctor section from the crtend file contains the
67 end of ctors marker and it must be last */
68
69 KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
70 KEEP (*(SORT(.ctors.*)))
71 KEEP (*(.ctors))
72 }
73
74 .dtors :
75 {
76 KEEP (*crtbegin.o(.dtors))
77 KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
78 KEEP (*(SORT(.dtors.*)))
79 KEEP (*(.dtors))
80 }
81
82 . = .;
83 .rodata : {
84 *(.rdata)
85 *(.rodata)
86 *(.rodata.*)
87 *(.gnu.linkonce.r*)
88 }
89 _fdata = ALIGN(16);
90 .data : {
91 *(.data)
92 *(.data.*)
93 *(.gnu.linkonce.d*)
94 CONSTRUCTORS
95 }
96 . = ALIGN(8);
97 _gp = . + 0x8000;
98 __global = _gp;
99 .lit8 : {
100 *(.lit8)
101 }
102 .lit4 : {
103 *(.lit4)
104 }
105 .sdata : {
106 *(.sdata)
107 *(.sdata.*)
108 *(.gnu.linkonce.s*)
109 }
110 edata = .;
111 _edata = .;
112 _fbss = .;
113 .sbss : {
114 *(.sbss)
115 *(.scommon)
116 }
117 .bss : {
118 _bss_start = . ;
119 *(.bss)
120 *(COMMON)
121 }
122 end = .;
123 _end = .;
124}
This page took 0.074996 seconds and 5 git commands to generate.