source: rtems/c/src/lib/libbsp/m68k/mvme136/startup/linkcmds @ 196094eb

4.104.114.84.95
Last change on this file since 196094eb 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.5 KB
Line 
1/*
2 *  This file contains directives for the GNU linker which are specific
3 *  to the Motorola MVME136/MVME135 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;
17MEMORY
18        {
19        ram : org = 0x3000, l = 1M
20        }
21
22SECTIONS
23{
24        .text 0x3000 :
25        {
26            text_start = . ;
27            _text_start = . ;
28            *(.text)
29            . = ALIGN (16);
30
31            *(.eh_fram)
32            . = ALIGN (16);
33
34            /*
35             * C++ constructors
36             */
37            __CTOR_LIST__ = .;
38            LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
39            *(.ctors)
40            LONG(0)
41            __CTOR_END__ = .;
42            __DTOR_LIST__ = .;
43            LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
44            *(.dtors)
45            LONG(0)
46            __DTOR_END__ = .;
47            etext = ALIGN( 0x10 ) ;
48            _etext = .;
49        }
50        .data ADDR( .text ) + SIZEOF( .text ):
51        {
52            data_start = . ;
53            _data_start = .;
54            *(.data)
55            edata = ALIGN( 0x10 ) ;
56            _edata = .;
57        }
58        .bss ADDR( .data ) + SIZEOF( .data ):
59        {
60            bss_start = . ;
61            _bss_start = . ;
62            *(.bss)
63            *(COMMON)
64                . += StackSize; /* XXX -- Old gld can't handle this */
65                . = ALIGN (16);
66                stack_init = .;
67            end = . ;
68            _end = . ;
69        }
70}
Note: See TracBrowser for help on using the repository browser.