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

Subversion Repositories mips_enhanced

[/] [mips_enhanced/] [trunk/] [grlib-gpl-1.0.19-b3188/] [designs/] [leon3-digilent-xup/] [linkprom] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 dimamali
/*  linkcmds
2
 *
3
 *  $Id: linkcmds,v 1.8.2.1 2000/05/24 17:06:38 joel Exp $
4
 */
5
 
6
OUTPUT_ARCH(sparc)
7
__DYNAMIC  =  0;
8
 
9
/*
10
 * The memory map looks like this:
11
 * +--------------------+ <- low memory
12
 * | .text              |
13
 * |        etext       |
14
 * |        ctor list   | the ctor and dtor lists are for
15
 * |        dtor list   | C++ support
16
 * |        _endtext    |
17
 * +--------------------+
18
 * | .data              | initialized data goes here
19
 * |        _sdata      |
20
 * |        _edata      |
21
 * +--------------------+
22
 * | .bss               |
23
 * |        __bss_start | start of bss, cleared by crt0
24
 * |        _end        | start of heap, used by sbrk()
25
 * +--------------------+
26
 * |    heap space      |
27
 * |        _ENDHEAP    |
28
 * |    stack space     |
29
 * |        __stack     | top of stack
30
 * +--------------------+ <- high memory
31
 */
32
 
33
 
34
/* Default values, can be overridden */
35
 
36
_PROM_SIZE = 2M;
37
_RAM_SIZE = 4M;
38
 
39
_RAM_START = 0x02000000;
40
_RAM_END = _RAM_START + _RAM_SIZE;
41
 
42
_PROM_START = 0x00000000;
43
_PROM_END = _PROM_START + _PROM_SIZE;
44
 
45
/*
46
 *  Alternate names without leading _.
47
 */
48
 
49
PROM_START = _PROM_START;
50
PROM_SIZE = _PROM_SIZE;
51
PROM_END = _PROM_END;
52
 
53
RAM_START = _RAM_START;
54
RAM_SIZE = _RAM_SIZE;
55
RAM_END = _RAM_END;
56
 
57
_LEON_REG = 0x80000000;
58
LEON_REG = 0x80000000;
59
 
60
/* these are the maximum values */
61
 
62
MEMORY
63
{
64
  rom     : ORIGIN = 0x00000000, LENGTH = 16M
65
  ram     : ORIGIN = 0x40000000, LENGTH = 1024M
66
}
67
 
68
SECTIONS
69
{
70
  .text :
71
  {
72
    CREATE_OBJECT_SYMBOLS
73
    text_start = .;
74
    _text_start = .;
75
    *(.text)
76
    . = ALIGN (16);
77
 
78
    *(.eh_frame)
79
    . = ALIGN (16);
80
 
81
    *(.gnu.linkonce.t*)
82
 
83
    /*
84
     * C++ constructors
85
     */
86
    __CTOR_LIST__ = .;
87
    LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
88
    *(.ctors)
89
    LONG(0)
90
    __CTOR_END__ = .;
91
    __DTOR_LIST__ = .;
92
    LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
93
    *(.dtors)
94
    LONG(0)
95
    __DTOR_END__ = .;
96
 
97
    _rodata_start = . ;
98
    *(.rodata*)
99
    *(.gnu.linkonce.r*)
100
    _erodata = ALIGN( 0x10 ) ;
101
 
102
    etext = ALIGN(0x10);
103
    _etext = .;
104
    *(.init)
105
    *(.fini)
106
    *(.lit)
107
    *(.shdata)
108
    . = ALIGN (16);
109
    _endtext = .;
110
  } > rom
111
  .dynamic        : { *(.dynamic)       } >ram
112
  .got            : { *(.got)           } >ram
113
  .plt            : { *(.plt)           } >ram
114
  .hash           : { *(.hash)          } >ram
115
  .dynrel         : { *(.dynrel)        } >ram
116
  .dynsym         : { *(.dynsym)        } >ram
117
  .dynstr         : { *(.dynstr)        } >ram
118
  .hash           : { *(.hash)          } >ram
119
  .data :
120
  {
121
    data_start = .;
122
    _data_start = .;
123
    _sdata = . ;
124
    *(.data)
125
    *(.gnu.linkonce.d*)
126
    *(.gcc_except_table)
127
    . = ALIGN(0x10);
128
    edata = .;
129
    _edata = .;
130
  } > ram
131
  .shbss :
132
  {
133
    *(.shbss)
134
  } > ram
135
  .bss :
136
  {
137
    __bss_start = ALIGN(0x8);
138
    _bss_start = .;
139
    bss_start = .;
140
    *(.bss)
141
    *(COMMON)
142
    end = .;
143
    _end = ALIGN(0x8);
144
    __end = ALIGN(0x8);
145
  } > ram
146
  .jcr . (NOLOAD)  : { *(.jcr)          }
147
  .stab . (NOLOAD) :
148
  {
149
    [ .stab ]
150
  }
151
  .stabstr . (NOLOAD) :
152
  {
153
    [ .stabstr ]
154
  }
155
}

powered by: WebSVN 2.1.0

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