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

4.104.114.84.95
Last change on this file since 2aa61582 was 2aa61582, checked in by Joel Sherrill <joel.sherrill@…>, on 05/09/02 at 21:42:24

2001-05-09 Joel Sherrill <joel@…>

  • startup/linkcmds: In support of gcc 3.1, added one of more of the sections .jcr, .rodata*, .data.*, .gnu.linkonce.s2.*, .gnu.linkonce.sb2.*, and .gnu.linkonce.s.*. Spacing corrections and direction of segments to memory regions may also have been addressed. This was a sweep across all BSPs.
  • startup/linkcmds.real: Ditto.
  • clock/ckinit.c: Add volatile to Clock_driver_ticks.
  • Property mode set to 100644
File size: 1.3 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        ___CTOR_LIST__ = .;
32        LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2)
33        *(.ctors)
34        LONG(0)
35        ___CTOR_END__ = .;
36        ___DTOR_LIST__ = .;
37        LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2)
38        *(.dtors)
39        LONG(0)
40        ___DTOR_END__ = .;
41    } 
42    .data SIZEOF(.text) + ADDR(.text):
43    {
44        *(.data)
45        CONSTRUCTORS
46         _edata = .;
47    } 
48    .bss SIZEOF(.data) + ADDR(.data):
49    {
50         _bss_start = .;
51        *(.bss) 
52        *(COMMON)
53        . = ALIGN (64);
54        _stack_init = .;
55        . += _StackSize;
56        _clear_end = .;
57        _WorkspaceBase = .;
58        . += 512K;      /* reserve some memory for workspace */
59        _HeapBase = .;
60        . += _HeapSize; /* reserve some memory for heap */
61         _end = .;
62         __end = .;
63    }
64}
Note: See TracBrowser for help on using the repository browser.