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 04/16/99 at 18:08:09

Added .eh_fram and .gcc_exc sections.

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[ac7d5ef0]1/*
2 *  This file contains directives for the GNU linker which are specific
3 *  to the DY-4 DMV152/SVME153 boards.
4 *
[60b791ad]5 *  COPYRIGHT (c) 1989-1998.
[ac7d5ef0]6 *  On-Line Applications Research Corporation (OAR).
[03f2154e]7 *  Copyright assigned to U.S. Government, 1994.
[ac7d5ef0]8 *
[98e4ebf5]9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
[03f2154e]11 *  http://www.OARcorp.com/rtems/license.html.
[ac7d5ef0]12 *
13 *  $Id$
14 */
15
[db88957]16StackSize = DEFINED(StackSize) ? StackSize : 0x1000;
17
[ac7d5ef0]18MEMORY
19        {
20        ram : org = 0x12800, l = 1M
21        }
22
23SECTIONS
24{
25        .text 0x12800 :
26        {
27        text_start = . ;
28        _text_start = . ;
29        *(.text)
[f86ec42]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__ = .;
[ac7d5ef0]48        etext = ALIGN( 0x10 ) ;
49        _etext = .;
50        }
[2a4791f]51
52        .eh_fram : {
53                . = ALIGN (16);
54                *(.eh_fram)
55        }
56
57        .gcc_exc : {
58                . = ALIGN (16);
59                *(.gcc_exc)
60        }
61
[ac7d5ef0]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)
[db88957]76        . += StackSize; /* XXX -- Old gld can't handle this */
77        . = ALIGN (16);
78        stack_init = .;
[ac7d5ef0]79        end = . ;
80        _end = . ;
81        }
82}
Note: See TracBrowser for help on using the repository browser.