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

4.104.114.84.95
Last change on this file since cb585c3 was cb585c3, checked in by Joel Sherrill <joel.sherrill@…>, on 01/29/97 at 00:32:23

erc32 bsp supercedes sis

  • Property mode set to 100644
File size: 2.5 KB
Line 
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 *
39 * _PROM_SIZE                 size of PROM (permissible values are 4K, 8K, 16K
40 *                               32K, 64K, 128K, 256K, and 512K)
41 * _RAM_SIZE                  size of RAM (permissible values are 256K, 512K,
42 *                               1MB, 2Mb, 4Mb, 8Mb, 16Mb, and 32Mb)
43 *
44 *  MAKE SURE THESE MATCH THE MEMORY DESCRIPTION SECTION!!!
45 */
46
47/*
48_CLOCK_SPEED = 10;
49*/
50
51_PROM_SIZE = 512K;
52_RAM_SIZE = 2M;
53
54_RAM_START = 0x02000000;
55_RAM_END = _RAM_START + _RAM_SIZE;
56
57_PROM_START = 0x00000000;
58_PROM_END = _PROM_START + _PROM_SIZE;
59
60/*
61 *  Base address of the on-CPU peripherals
62 */
63
64_ERC32_MEC = 0x01f80000;
65
66MEMORY
67{
68  rom     : ORIGIN = 0x00000000, LENGTH = 512K
69  ram     : ORIGIN = 0x02000000, LENGTH = 2M
70}
71
72/*
73 * stick everything in ram (of course)
74 */
75SECTIONS
76{
77  .text :
78  {
79    CREATE_OBJECT_SYMBOLS
80    text_start = .;
81    _text_start = .;
82    *(.text)
83    etext = ALIGN(0x10);
84    _etext = .;
85    __CTOR_LIST__ = .;
86    LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
87    *(.ctors)
88    LONG(0)
89    __CTOR_END__ = .;
90    __DTOR_LIST__ = .;
91    LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
92    *(.dtors)
93    LONG(0)
94    __DTOR_END__ = .;
95    *(.lit)
96    *(.shdata)
97    _endtext = .;
98  } > ram
99  .data :
100  {
101    data_start = .;
102    _data_start = .;
103    _sdata = . ;
104    *(.data)
105    CONSTRUCTORS
106    edata = ALIGN(0x10);
107    _edata = .;
108  } > ram
109  .shbss :
110  {
111    *(.shbss)
112  } > ram
113  .bss :
114  {
115    __bss_start = ALIGN(0x8);
116    _bss_start = .;
117    bss_start = .;
118    *(.bss)
119    *(COMMON)
120    end = .;
121    _end = ALIGN(0x8);
122    __end = ALIGN(0x8);
123  } > ram
124  .stab . (NOLOAD) :
125  {
126    [ .stab ]
127  }
128  .stabstr . (NOLOAD) :
129  {
130    [ .stabstr ]
131  }
132}
Note: See TracBrowser for help on using the repository browser.