source: rtems/c/src/lib/libbsp/i960/rxgen960/startup/linkcmds @ dc39377

4.104.114.84.95
Last change on this file since dc39377 was dc39377, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 10, 2000 at 7:09:37 PM

Now links although linkcmds will not work on real hardware. But then
again neither will unlinked executables. :)

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 *  This is not the real linkcmds for this target.  See
3 *  linkcmds.real and make those work for you.  That linkcmds
4 *  goes to great lengths to handplace certain object files
5 *  in very specific locations. 
6 *
7 *  $Id$
8 */
9
10/*
11 * Declare some sizes.
12 */
13_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
14_RamSize = DEFINED(_RamSize) ? _RamSize : 1M;
15_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x10000;
16_StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000;
17
18SECTIONS
19{
20    . = 0x0;
21    .text :
22    {
23         CREATE_OBJECT_SYMBOLS
24        *(.text)
25         _etext = .;
26       
27        ___CTOR_LIST__ = .;
28        LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2)
29        *(.ctors)
30        LONG(0)
31        ___CTOR_END__ = .;
32        ___DTOR_LIST__ = .;
33        LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2)
34        *(.dtors)
35        LONG(0)
36        ___DTOR_END__ = .;
37    } 
38    .data SIZEOF(.text) + ADDR(.text):
39    {
40        *(.data)
41        CONSTRUCTORS
42         _edata = .;
43    } 
44    .bss SIZEOF(.data) + ADDR(.data):
45    {
46         _bss_start = .;
47        *(.bss) 
48        *(COMMON)
49        . = ALIGN (64);
50        _stack_init = .;
51        . += _StackSize;
52        _clear_end = .;
53        _WorkspaceBase = .;
54        . += 512K;      /* reserve some memory for workspace */
55        _HeapBase = .;
56        . += _HeapSize; /* reserve some memory for heap */
57         _end = .;
58         __end = .;
59    }
60}
Note: See TracBrowser for help on using the repository browser.