source: rtems/c/src/lib/libbsp/m68k/dmv152/startup/linkcmds @ db88957

4.104.114.84.95
Last change on this file since db88957 was db88957, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 26, 1998 at 4:18:58 PM

Patches done in conjunction with Juan Zamorano Flores
<jzamora@…>. He debugged enough to let me
know what was wrong and I supplied the code. :)

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*
2 *  This file contains directives for the GNU linker which are specific
3 *  to the DY-4 DMV152/SVME153 boards.
4 *
5 *  COPYRIGHT (c) 1989-1998.
6 *  On-Line Applications Research Corporation (OAR).
7 *  Copyright assigned to U.S. Government, 1994.
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.OARcorp.com/rtems/license.html.
12 *
13 *  $Id$
14 */
15
16StackSize = DEFINED(StackSize) ? StackSize : 0x1000;
17
18MEMORY
19        {
20        ram : org = 0x12800, l = 1M
21        }
22
23SECTIONS
24{
25        .text 0x12800 :
26        {
27        text_start = . ;
28        _text_start = . ;
29        *(.text)
30        . = ALIGN (16);
31
32        *(.eh_fram)
33        . = ALIGN (16);
34
35        /*
36         * C++ constructors
37         */
38        __CTOR_LIST__ = .;
39        LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
40        *(.ctors)
41        LONG(0)
42        __CTOR_END__ = .;
43        __DTOR_LIST__ = .;
44        LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
45        *(.dtors)
46        LONG(0)
47        __DTOR_END__ = .;
48        etext = ALIGN( 0x10 ) ;
49        _etext = .;
50        }
51        .data ADDR( .text ) + SIZEOF( .text ):
52        {
53        data_start = . ;
54        _data_start = . ;
55        *(.data)
56        edata = ALIGN( 0x10 ) ;
57        _edata = .;
58        }
59        .bss ADDR( .data ) + SIZEOF( .data ):
60        {
61        bss_start = . ;
62        _bss_start = . ;
63        *(.bss)
64        *(COMMON)
65        . += StackSize; /* XXX -- Old gld can't handle this */
66        . = ALIGN (16);
67        stack_init = .;
68        end = . ;
69        _end = . ;
70        }
71}
Note: See TracBrowser for help on using the repository browser.