source: rtems/c/src/lib/libbsp/m68k/mvme162/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.5 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 : {
57        data_start = . ;
58        *(.data)
59        edata = ALIGN( 0x10 ) ;
60        }
61        .bss : {
62        bss_start = . ;
63        *(.bss)
64        *(COMMON)
65        . += StackSize; /* XXX -- Old gld can't handle this */
66        . = ALIGN (16);
67        stack_init = .;
68        end = . ;
69        _end = . ;
70        }
71}
Note: See TracBrowser for help on using the repository browser.