source: rtems/c/src/lib/libbsp/i960/i960sim/startup/linkcmds @ 68c498f4

4.104.114.84.95
Last change on this file since 68c498f4 was 68c498f4, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 12, 2000 at 4:34:46 PM

Added i960sim BSP which (ignoring the 3 instructions not supported
by gdb 5.0's i960 simulator) is enough to run hello world.

  • Property mode set to 100644
File size: 1006 bytes
Line 
1/*
2 *  $Id$
3 */
4
5/*
6 * Declare some sizes.
7 */
8_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
9_RamSize = DEFINED(_RamSize) ? _RamSize : 1M;
10_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x10000;
11_StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000;
12
13SECTIONS
14{
15    . = 0xa0008000;
16    .text :
17    {
18         CREATE_OBJECT_SYMBOLS
19        *(.text)
20         _etext = .;
21       
22        ___CTOR_LIST__ = .;
23        LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2)
24        *(.ctors)
25        LONG(0)
26        ___CTOR_END__ = .;
27        ___DTOR_LIST__ = .;
28        LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2)
29        *(.dtors)
30        LONG(0)
31        ___DTOR_END__ = .;
32    } 
33    .data SIZEOF(.text) + ADDR(.text):
34    {
35        *(.data)
36        CONSTRUCTORS
37         _edata = .;
38    } 
39    .bss SIZEOF(.data) + ADDR(.data):
40    {
41         _bss_start = .;
42        *(.bss) 
43        *(COMMON)
44        . = ALIGN (64);
45        _stack_init = .;
46        . += _StackSize;
47        _clear_end = .;
48        _WorkspaceBase = .;
49        . += 512K;      /* reserve some memory for workspace */
50        _HeapBase = .;
51        . += _HeapSize; /* reserve some memory for heap */
52         _end = .;
53         __end = .;
54    }
55}
Note: See TracBrowser for help on using the repository browser.