source: rtems/c/src/lib/libbsp/m68k/mvme147s/startup/linkcmds @ 08311cc3

4.104.114.84.95
Last change on this file since 08311cc3 was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34

Updated copyright notice.

  • Property mode set to 100644
File size: 1.9 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-1999.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.OARcorp.com/rtems/license.html.
11 *
12 *  MVME147 port for TNI - Telecom Bretagne
13 *  by Dominique LE CAMPION (Dominique.LECAMPION@enst-bretagne.fr)
14 *  May 1996
15 *
16 *  $Id$
17 */
18
19StackSize = DEFINED(StackSize) ? StackSize : 0x1000;
20
21MEMORY
22        {
23        ram : org = 0x7000, l = 0x3d8fff
24        }
25
26SECTIONS
27{
28        .text 0x7000 :
29        {
30            text_start = . ;
31            _text_start = . ;
32            *(.text)
33            . = ALIGN (16);
34
35            *(.gnu.linkonce.t.*)
36            *(.descriptors)
37            /* .gnu.warning sections are handled specially by elf32.em.  */
38            *(.gnu.warning)
39
40            *(.eh_fram)
41            . = ALIGN (16);
42
43            /*
44             * C++ constructors
45             */
46            __CTOR_LIST__ = .;
47            LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
48            *(.ctors)
49            LONG(0)
50            __CTOR_END__ = .;
51            __DTOR_LIST__ = .;
52            LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
53            *(.dtors)
54            LONG(0)
55            __DTOR_END__ = .;
56
57            _rodata_start = . ;
58            *(.rodata)
59            *(.gnu.linkonce.r*)
60            _erodata = ALIGN( 0x10 ) ;
61
62            etext = ALIGN( 0x10 ) ;
63            _etext = .;
64        }
65        .data ADDR( .text ) + SIZEOF( .text ):
66        {
67            data_start = . ;
68            _data_start = .;
69            *(.data)
70            *(.gnu.linkonce.d*)
71            *(.gcc_except_table)
72            edata = ALIGN( 0x10 ) ;
73            _edata = .;
74        }
75        .bss ADDR( .data ) + SIZEOF( .data ):
76        {
77            bss_start = . ;
78            _bss_start = . ;
79            *(.bss)
80            *(COMMON)
81            . += StackSize; /* XXX -- Old gld can't handle this */
82            . = ALIGN (16);
83            stack_init = .;
84            end = . ;
85            _end = . ;
86        }
87}
Note: See TracBrowser for help on using the repository browser.