source: rtems/c/src/lib/libbsp/m68k/dmv152/startup/linkcmds @ 7c9cca11

4.104.114.84.95
Last change on this file since 7c9cca11 was 7c9cca11, checked in by Joel Sherrill <joel.sherrill@…>, on 10/05/99 at 18:34:15

Modified to remove error for overlapping sections now that
gnu.linkonce* sections are included.

  • Property mode set to 100644
File size: 1.4 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        . = ALIGN (16);
36        *(.gcc_exc)
37
38        /*
39         * C++ constructors
40         */
41        __CTOR_LIST__ = .;
42        LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
43        *(.ctors)
44        LONG(0)
45        __CTOR_END__ = .;
46        __DTOR_LIST__ = .;
47        LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
48        *(.dtors)
49        LONG(0)
50        __DTOR_END__ = .;
51        etext = ALIGN( 0x10 ) ;
52        _etext = .;
53        }
54
55
56        .data : {
57                data_start = . ;
58                _data_start = . ;
59                *(.data)
60                edata = ALIGN( 0x10 ) ;
61                _edata = .;
62        }
63        .bss : {
64                bss_start = . ;
65                _bss_start = . ;
66                *(.bss)
67                *(COMMON)
68                . += StackSize; /* XXX -- Old gld can't handle this */
69                . = ALIGN (16);
70                stack_init = .;
71                end = . ;
72                _end = . ;
73        }
74}
Note: See TracBrowser for help on using the repository browser.