source: rtems/c/src/lib/libbsp/m68k/mvme147/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 10/26/98 at 16:18:58

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.6 KB
Line 
1/*
2 *  This file contains directives for the GNU linker which are specific
3 *  to the Motorola MVME147 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 *  MVME147 port for TNI - Telecom Bretagne
14 *  by Dominique LE CAMPION (Dominique.LECAMPION@enst-bretagne.fr)
15 *  May 1996
16 *
17 *  $Id$
18 */
19
20StackSize = DEFINED(StackSize) ? StackSize : 0x1000;
21
22MEMORY
23        {
24        ram : org = 0x5000, l = 0x3fafff
25        }
26
27SECTIONS
28{
29        .text 0x5000 :
30        {
31            text_start = . ;
32            _text_start = . ;
33            *(.text)
34            . = ALIGN (16);
35
36            *(.eh_fram)
37            . = ALIGN (16);
38
39            /*
40             * C++ constructors
41             */
42            __CTOR_LIST__ = .;
43            LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
44            *(.ctors)
45            LONG(0)
46            __CTOR_END__ = .;
47            __DTOR_LIST__ = .;
48            LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
49            *(.dtors)
50            LONG(0)
51            __DTOR_END__ = .;
52            etext = ALIGN( 0x10 ) ;
53            _etext = .;
54        }
55        .data ADDR( .text ) + SIZEOF( .text ):
56        {
57            data_start = . ;
58            _data_start = .;
59            *(.data)
60            edata = ALIGN( 0x10 ) ;
61            _edata = .;
62        }
63        .bss ADDR( .data ) + SIZEOF( .data ):
64        {
65            bss_start = . ;
66            _bss_start = . ;
67            *(.bss)
68            *(COMMON)
69            . += StackSize; /* XXX -- Old gld can't handle this */
70            . = ALIGN (16);
71            stack_init = .;
72            end = . ;
73            _end = . ;
74        }
75}
Note: See TracBrowser for help on using the repository browser.