source: rtems/c/src/lib/libbsp/m68k/mvme162/startup/linkcmds @ f5e5de9

4.104.114.84.95
Last change on this file since f5e5de9 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 MVME162 board.
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 *  Modifications of respective RTEMS file: COPYRIGHT (c) 1994.
14 *  EISCAT Scientific Association. M.Savitski
15 *
16 *  This material is a part of the MVME162 Board Support Package
17 *  for the RTEMS executive. Its licensing policies are those of the
18 *  RTEMS above.
19 *
20 *  $Id$
21 */
22
23StackSize = DEFINED(StackSize) ? StackSize : 0x1000;
24
25MEMORY
26        {
27        ram : org = 0x100000, l = 1M
28        }
29
30SECTIONS
31{
32        .text 0x100000 :
33        {
34        text_start = . ;
35        *(.text)
36        . = ALIGN (16);
37
38        *(.eh_fram)
39        . = ALIGN (16);
40
41        /*
42         * C++ constructors
43         */
44        __CTOR_LIST__ = .;
45        LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
46        *(.ctors)
47        LONG(0)
48        __CTOR_END__ = .;
49        __DTOR_LIST__ = .;
50        LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
51        *(.dtors)
52        LONG(0)
53        __DTOR_END__ = .;
54        etext = ALIGN( 0x10 ) ;
55        }
56        .data ADDR( .text ) + SIZEOF( .text ):
57        {
58        data_start = . ;
59        *(.data)
60        edata = ALIGN( 0x10 ) ;
61        }
62        .bss ADDR( .data ) + SIZEOF( .data ):
63        {
64        bss_start = . ;
65        *(.bss)
66        *(COMMON)
67        . += StackSize; /* XXX -- Old gld can't handle this */
68        . = ALIGN (16);
69        stack_init = .;
70        end = . ;
71        _end = . ;
72        }
73}
Note: See TracBrowser for help on using the repository browser.