source: rtems/c/src/lib/libbsp/m68k/mvme147/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 10/06/99 at 18:04:34

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 MVME147 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 *  MVME147 port for TNI - Telecom Bretagne
14 *  by Dominique LE CAMPION (Dominique.LECAMPION@enst-bretagne.fr)
15 *  May 1996
16 *
17 *  $Id$
18 */
19
20StackSize = DEFINED(StackSize) ? StackSize : 0x1000;
21
22MEMORY
23        {
24        ram : org = 0x5000, l = 0x3fafff
25        }
26
27SECTIONS
28{
29        .text 0x5000 :
30        {
31            text_start = . ;
32            _text_start = . ;
33            *(.text)
34            . = ALIGN (16);
35
36            *(.eh_fram)
37            . = ALIGN (16);
38
39            /*
40             * C++ constructors
41             */
42            __CTOR_LIST__ = .;
43            LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
44            *(.ctors)
45            LONG(0)
46            __CTOR_END__ = .;
47            __DTOR_LIST__ = .;
48            LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
49            *(.dtors)
50            LONG(0)
51            __DTOR_END__ = .;
52            etext = ALIGN( 0x10 ) ;
53            _etext = .;
54        }
55        .data : {
56            data_start = . ;
57            _data_start = .;
58            *(.data)
59            edata = ALIGN( 0x10 ) ;
60            _edata = .;
61        }
62        .bss : {
63            bss_start = . ;
64            _bss_start = . ;
65            *(.bss)
66            *(COMMON)
67            . += StackSize; /* XXX -- Old gld can't handle this */
68            . = ALIGN (16);
69            stack_init = .;
70            end = . ;
71            _end = . ;
72        }
73}
Note: See TracBrowser for help on using the repository browser.