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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [libgloss/] [mips/] [dve.ld] - Blame information for rev 56

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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