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

4.104.114.84.95
Last change on this file since 9c1133e was 9c1133e, checked in by Joel Sherrill <joel.sherrill@…>, on 01/20/03 at 19:57:14

mkChangeLogList [-n]

  • Property mode set to 100644
File size: 1.5 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        _rodata_start = . ;
26        *(.rodata*)
27        *(.gnu.linkonce.r*)
28        _erodata = ALIGN( 0x10 ) ;
29         _etext = .;
30       
31        /*
32         * Special FreeBSD sysctl sections.
33         */
34        . = ALIGN (16);
35        __start_set_sysctl_set = .;
36        *(set_sysctl_*);
37        __stop_set_sysctl_set = ABSOLUTE(.);
38        *(set_domain_*);
39        *(set_pseudo_*);
40
41        ___CTOR_LIST__ = .;
42        LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2)
43        *(.ctors)
44        LONG(0)
45        ___CTOR_END__ = .;
46        ___DTOR_LIST__ = .;
47        LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2)
48        *(.dtors)
49        LONG(0)
50        ___DTOR_END__ = .;
51    } 
52    .data SIZEOF(.text) + ADDR(.text):
53    {
54        *(.data)
55        CONSTRUCTORS
56         _edata = .;
57    } 
58    .bss SIZEOF(.data) + ADDR(.data):
59    {
60         _bss_start = .;
61        *(.bss) 
62        *(COMMON)
63        . = ALIGN (64);
64        _stack_init = .;
65        . += _StackSize;
66        _clear_end = .;
67        _WorkspaceBase = .;
68        . += 512K;      /* reserve some memory for workspace */
69        _HeapBase = .;
70        . += _HeapSize; /* reserve some memory for heap */
71         _end = .;
72         __end = .;
73    }
74}
Note: See TracBrowser for help on using the repository browser.