source: rtems/c/src/lib/libbsp/i386/force386/startup/linkcmds @ f86ec42

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

Added .eh_frame, C++ constructor, and C++ destructor sections.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 *  This file contains directives for the GNU linker which are specific
3 *  to the FORCE CPU386 board.
4 *
5 *  COPYRIGHT (c) 1989-1997.
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 *  $Id$
14 */
15
16MEMORY
17        {
18        ram : org = 0x0, l = 1M
19        }
20
21SECTIONS
22{
23        .text 0x0 :
24        {
25        _text_start = . ;
26        *(.text)
27        . = ALIGN (16);
28
29        *(.eh_fram)
30        . = ALIGN (16);
31
32        /*
33         * C++ constructors
34         */
35        __CTOR_LIST__ = .;
36        LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
37        *(.ctors)
38        LONG(0)
39        __CTOR_END__ = .;
40        __DTOR_LIST__ = .;
41        LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
42        *(.dtors)
43        LONG(0)
44        __DTOR_END__ = .;
45        _etext = ALIGN( 0x10 ) ;
46        }
47        .data ADDR( .text ) + SIZEOF( .text ):
48        {
49        _data_start = . ;
50        *(.data)
51        _edata = ALIGN( 0x10 ) ;
52        }
53        .bss ADDR( .data ) + SIZEOF( .data ):
54        {
55        _bss_start = . ;
56        *(.bss)
57        *(COMMON)
58        end = . ;
59        _end = . ;
60        __end = . ;
61        }
62}
Note: See TracBrowser for help on using the repository browser.