source: rtems/c/src/lib/libbsp/m68k/mvme136/startup/linkcmds @ 01c36de

4.104.114.84.95
Last change on this file since 01c36de was 01c36de, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 6, 1999 at 6:04:34 PM

Added more sections and made minor modifications to let the linkcmds
work with m68k-elf on late model versions of binutils (990901+)
without overlapping or missing section errors.

  • 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 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 : {
51            data_start = . ;
52            _data_start = .;
53            *(.data)
54            edata = ALIGN( 0x10 ) ;
55            _edata = .;
56        }
57        .bss : {
58            bss_start = . ;
59            _bss_start = . ;
60            *(.bss)
61            *(COMMON)
62                . += StackSize; /* XXX -- Old gld can't handle this */
63                . = ALIGN (16);
64                stack_init = .;
65            end = . ;
66            _end = . ;
67        }
68}
Note: See TracBrowser for help on using the repository browser.