OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [newlib/] [libgloss/] [mips/] [idt.ld] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
/* The following TEXT start address leaves space for the monitor
2
   workspace. i.e. the NEC VR4300 (IDT) first free address is actually
3
   0xa001af20. */
4
 
5
ENTRY(_start)
6
OUTPUT_ARCH("mips:4000")
7
OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
8
GROUP(-lc -lidt -lgcc)
9
SEARCH_DIR(.)
10
__DYNAMIC  =  0;
11
 
12
/*
13
 * Allocate the stack to be at the top of memory, since the stack
14
 * grows down
15
 */
16
PROVIDE (__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
 */
27
PROVIDE (hardware_init_hook = 0);
28
PROVIDE (software_init_hook = 0);
29
 
30
SECTIONS
31
{
32
  . = 0xA0020000;
33
  .text : {
34
     _ftext = . ;
35
    *(.init)
36
     eprol  =  .;
37
    *(.text)
38 56 joel
    *(.text.*)
39
    *(.gnu.linkonce.t*)
40 39 lampret
    *(.mips16.fn.*)
41
    *(.mips16.call.*)
42
    PROVIDE (__runtime_reloc_start = .);
43
    *(.rel.sdata)
44
    PROVIDE (__runtime_reloc_stop = .);
45
    *(.fini)
46
     etext  =  .;
47
     _etext  =  .;
48
  }
49 56 joel
 
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 39 lampret
  . = .;
83 56 joel
  .rodata : {
84 39 lampret
    *(.rdata)
85 56 joel
    *(.rodata)
86
    *(.rodata.*)
87
    *(.gnu.linkonce.r*)
88 39 lampret
  }
89
   _fdata = ALIGN(16);
90
  .data : {
91
    *(.data)
92 56 joel
    *(.data.*)
93
    *(.gnu.linkonce.d*)
94 39 lampret
  }
95
  . = ALIGN(8);
96
  _gp = . + 0x8000;
97
  __global = _gp;
98
  .lit8 : {
99
    *(.lit8)
100
  }
101
  .lit4 : {
102
    *(.lit4)
103
  }
104
  .sdata : {
105
    *(.sdata)
106 56 joel
    *(.sdata.*)
107
    *(.gnu.linkonce.s*)
108 39 lampret
  }
109
  . = ALIGN(4);
110
   edata  =  .;
111
   _edata  =  .;
112
   _fbss = .;
113
  .sbss : {
114
    *(.sbss)
115
    *(.scommon)
116
  }
117
  .bss : {
118
    _bss_start = . ;
119
    *(.bss)
120
    *(COMMON)
121
  }
122
 
123
   end = .;
124
   _end = .;
125
 
126
  /* DWARF debug sections.
127
     Symbols in the DWARF debugging sections are relative to
128
     the beginning of the section so we begin them at 0.  */
129
 
130
  /* DWARF 1 */
131
  .debug          0 : { *(.debug) }
132
  .line           0 : { *(.line) }
133
 
134
  /* GNU DWARF 1 extensions */
135
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
136
  .debug_sfnames  0 : { *(.debug_sfnames) }
137
 
138
  /* DWARF 1.1 and DWARF 2 */
139
  .debug_aranges  0 : { *(.debug_aranges) }
140
  .debug_pubnames 0 : { *(.debug_pubnames) }
141
 
142
  /* DWARF 2 */
143
  .debug_info     0 : { *(.debug_info) }
144
  .debug_abbrev   0 : { *(.debug_abbrev) }
145
  .debug_line     0 : { *(.debug_line) }
146
  .debug_frame    0 : { *(.debug_frame) }
147
  .debug_str      0 : { *(.debug_str) }
148
  .debug_loc      0 : { *(.debug_loc) }
149
  .debug_macinfo  0 : { *(.debug_macinfo) }
150
 
151
  /* SGI/MIPS DWARF 2 extensions */
152
  .debug_weaknames 0 : { *(.debug_weaknames) }
153
  .debug_funcnames 0 : { *(.debug_funcnames) }
154
  .debug_typenames 0 : { *(.debug_typenames) }
155
  .debug_varnames  0 : { *(.debug_varnames) }
156
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.