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

4.104.114.84.95
Last change on this file since 2a4791f was 2a4791f, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 16, 1999 at 6:08:09 PM

Added .eh_fram and .gcc_exc sections.

  • 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 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
52        .eh_fram : {
53                . = ALIGN (16);
54                *(.eh_fram)
55        }
56
57        .gcc_exc : {
58                . = ALIGN (16);
59                *(.gcc_exc)
60        }
61
62        .data ADDR( .text ) + SIZEOF( .text ):
63        {
64        data_start = . ;
65        _data_start = . ;
66        *(.data)
67        edata = ALIGN( 0x10 ) ;
68        _edata = .;
69        }
70        .bss ADDR( .data ) + SIZEOF( .data ):
71        {
72        bss_start = . ;
73        _bss_start = . ;
74        *(.bss)
75        *(COMMON)
76        . += StackSize; /* XXX -- Old gld can't handle this */
77        . = ALIGN (16);
78        stack_init = .;
79        end = . ;
80        _end = . ;
81        }
82}
Note: See TracBrowser for help on using the repository browser.