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

4.104.114.84.95
Last change on this file since a863c50 was a863c50, checked in by Joel Sherrill <joel.sherrill@…>, on May 18, 1998 at 2:41:15 PM

Updates from Pedro Romano.

  • Property mode set to 100644
File size: 2.3 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_frame)
45    . = ALIGN (16);
46
47    *(.gnu.linkonce.t*)
48
49    /*
50     * C++ constructors
51     */
52    __CTOR_LIST__ = .;
53    LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
54    *(.ctors)
55    LONG(0)
56    __CTOR_END__ = .;
57    __DTOR_LIST__ = .;
58    LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
59    *(.dtors)
60    LONG(0)
61    __DTOR_END__ = .;
62
63    _rodata_start = . ;
64    *(.rodata)
65    _erodata = ALIGN( 0x10 ) ;
66
67    _etext = ALIGN( 0x10 ) ;
68  }
69  .data ADDR( .text ) + SIZEOF( .text ):
70  {
71    _data_start = . ;
72    *(.data)
73    *(.gnu.linkonce.d*)
74    *(.gcc_except_table)
75    _edata = ALIGN( 0x10 ) ;
76  }
77
78  .bss ADDR( .data ) + SIZEOF( .data ):
79  {
80    _bss_start = . ;
81    *(.bss)
82    *(COMMON)
83    _end = . ;
84    __end = . ;
85  }
86}
Note: See TracBrowser for help on using the repository browser.