source: rtems/c/src/lib/libbsp/i386/pc386/startup/linkcmds @ 60b791ad

4.104.114.84.95
Last change on this file since 60b791ad was 60b791ad, checked in by Joel Sherrill <joel.sherrill@…>, on 02/17/98 at 23:46:28

updated copyright to 1998

  • Property mode set to 100644
File size: 2.2 KB
Line 
1/*-------------------------------------------------------------------------+
2| linkcmds v1.1 - PC386 BSP - 1997/08/07
3+--------------------------------------------------------------------------+
4| This file contains directives for the GNU linker which are specific to the
5| PC386 bsp.
6+--------------------------------------------------------------------------+
7| (C) Copyright 1997 -
8| - NavIST Group - Real-Time Distributed Systems and Industrial Automation
9|
10| http://pandora.ist.utl.pt
11|
12| Instituto Superior Tecnico * Lisboa * PORTUGAL
13+--------------------------------------------------------------------------+
14| Disclaimer:
15|
16| This file is provided "AS IS" without warranty of any kind, either
17| expressed or implied.
18+--------------------------------------------------------------------------+
19| This code is based on:
20|   linkcmds,v 1.3 1995/12/19 20:06:58 joel Exp - FORCE CPU386 BSP
21| With the following copyright notice:
22| **************************************************************************
23| *  COPYRIGHT (c) 1989-1998.
24| *  On-Line Applications Research Corporation (OAR).
25| *  Copyright assigned to U.S. Government, 1994.
26| *
27| *  The license and distribution terms for this file may be
28| *  found in found in the file LICENSE in this distribution or at
29| *  http://www.OARcorp.com/rtems/license.html.
30| **************************************************************************
31|
32|  $Id$
33+--------------------------------------------------------------------------*/
34
35
36SECTIONS
37{
38  .text :
39  {
40    _text_start = . ;
41    *(.text)
42    . = ALIGN (16);
43
44    *(.eh_fram)
45    . = ALIGN (16);
46
47    /*
48     * C++ constructors
49     */
50    __CTOR_LIST__ = .;
51    LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
52    *(.ctors)
53    LONG(0)
54    __CTOR_END__ = .;
55    __DTOR_LIST__ = .;
56    LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
57    *(.dtors)
58    LONG(0)
59    __DTOR_END__ = .;
60    _etext = ALIGN( 0x10 ) ;
61  }
62  .rodata ADDR( .text ) + SIZEOF( .text ):
63  {
64    _rodata_start = . ;
65    *(.rodata)
66    _erodata = ALIGN( 0x10 ) ;
67  }
68  .data ADDR( .rodata ) + SIZEOF( .rodata ):
69  {
70    _data_start = . ;
71    *(.data)
72    _edata = ALIGN( 0x10 ) ;
73  }
74  .bss ADDR( .data ) + SIZEOF( .data ):
75  {
76    _bss_start = . ;
77    *(.bss)
78    *(COMMON)
79    _end = . ;
80    __end = . ;
81  }
82}
Note: See TracBrowser for help on using the repository browser.