source: rtems/c/src/lib/libbsp/sparc/erc32/startup/linkcmds @ b73e57b

4.104.114.84.95
Last change on this file since b73e57b was b73e57b, checked in by Joel Sherrill <joel.sherrill@…>, on 07/09/99 at 17:08:48

Patch from Jiri Gaisler <jgais@…>:

+ interrupt masking correction
+ FPU rev.B workaround
+ minor erc32 related fixes

  • Property mode set to 100644
File size: 3.3 KB
RevLine 
[cb585c3]1/*  linkcmds
2 *
3 *  $Id$
4 */
5
6OUTPUT_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/*
35 * User modifiable values:
36 *
37 * _CLOCK_SPEED               in Mhz (used to program the counter/timers)
38 *
[b73e57b]39 * _PROM_SIZE                 size of PROM (permissible values are 128K, 256K,
40 *                               512K, 1M, 2M, 4M, 8M and 16M)
[cb585c3]41 * _RAM_SIZE                  size of RAM (permissible values are 256K, 512K,
[b73e57b]42 *                               1M, 2M, 4M, 8M, 16M, and 32M)
[cb585c3]43 *
44 */
45
[b73e57b]46/* Default values, can be overridden */
[cb585c3]47
[b73e57b]48_PROM_SIZE = 2M;
49_RAM_SIZE = 4M;
[cb585c3]50
51_RAM_START = 0x02000000;
52_RAM_END = _RAM_START + _RAM_SIZE;
53
54_PROM_START = 0x00000000;
55_PROM_END = _PROM_START + _PROM_SIZE;
56
[b73e57b]57/*
58 *  Alternate names without leading _.
59 */
60
61PROM_START = _PROM_START;
62PROM_SIZE = _PROM_SIZE;
63PROM_END = _PROM_END;
64
65RAM_START = _RAM_START;
66RAM_SIZE = _RAM_SIZE;
67RAM_END = _RAM_END;
68
[cb585c3]69/*
70 *  Base address of the on-CPU peripherals
71 */
72
73_ERC32_MEC = 0x01f80000;
[7782f9fc]74ERC32_MEC = 0x01f80000;
[cb585c3]75
[b73e57b]76/* these are the maximum values */
77
[cb585c3]78MEMORY
79{
[b73e57b]80  rom     : ORIGIN = 0x00000000, LENGTH = 16
81  ram     : ORIGIN = 0x02000000, LENGTH = 32M
[cb585c3]82}
83
84/*
85 * stick everything in ram (of course)
86 */
87SECTIONS
88{
89  .text :
90  {
91    CREATE_OBJECT_SYMBOLS
92    text_start = .;
93    _text_start = .;
94    *(.text)
[f86ec42]95    . = ALIGN (16);
96
97    *(.eh_fram)
98    . = ALIGN (16);
99
100    /*
101     * C++ constructors
102     */
103    __CTOR_LIST__ = .;
104    LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
105    *(.ctors)
106    LONG(0)
107    __CTOR_END__ = .;
108    __DTOR_LIST__ = .;
109    LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
110    *(.dtors)
111    LONG(0)
112    __DTOR_END__ = .;
[cb585c3]113    etext = ALIGN(0x10);
114    _etext = .;
115    __CTOR_LIST__ = .;
116    LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
117    *(.ctors)
118    LONG(0)
119    __CTOR_END__ = .;
120    __DTOR_LIST__ = .;
121    LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
122    *(.dtors)
123    LONG(0)
124    __DTOR_END__ = .;
125    *(.lit)
126    *(.shdata)
127    _endtext = .;
128  } > ram
[1ca488b]129  .dynamic        : { *(.dynamic)       } >ram
130  .got            : { *(.got)           } >ram
131  .plt            : { *(.plt)           } >ram
132  .hash           : { *(.hash)          } >ram
133  .dynrel         : { *(.dynrel)        } >ram
134  .dynsym         : { *(.dynsym)        } >ram
135  .dynstr         : { *(.dynstr)        } >ram
136  .hash           : { *(.hash)          } >ram
[cb585c3]137  .data :
138  {
139    data_start = .;
140    _data_start = .;
141    _sdata = . ;
142    *(.data)
143    CONSTRUCTORS
144    edata = ALIGN(0x10);
145    _edata = .;
146  } > ram
147  .shbss :
148  {
149    *(.shbss)
150  } > ram
151  .bss :
152  {
153    __bss_start = ALIGN(0x8);
154    _bss_start = .;
155    bss_start = .;
156    *(.bss)
157    *(COMMON)
158    end = .;
159    _end = ALIGN(0x8);
160    __end = ALIGN(0x8);
161  } > ram
162  .stab . (NOLOAD) :
163  {
164    [ .stab ]
165  }
166  .stabstr . (NOLOAD) :
167  {
168    [ .stabstr ]
169  }
170}
Note: See TracBrowser for help on using the repository browser.