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

4.104.114.84.95
Last change on this file since 5ee559ac was 5ee559ac, checked in by Joel Sherrill <joel.sherrill@…>, on 05/04/98 at 12:37:35

Corrected and added sections to link cleanly under i386-rtemself.

  • Property mode set to 100644
File size: 1.3 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-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 *  $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
41                __DTOR_LIST__ = .;
42                LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
43                *(.dtors)
44                LONG(0)
45                __DTOR_END__ = .;
46                _etext = ALIGN( 0x10 ) ;
47
48
49        } >RAM
50
51        .init           : { *(.init)            } >RAM
52        .fini           : { *(.fini)            } >RAM
53        .rodata         : { *(.rodata)          } >RAM
54
55        .data :
56        {
57                _data_start = . ;
58                *(.data)
59                _edata = ALIGN( 0x10 ) ;
60        } >RAM
61
62        .bss :
63        {
64                _bss_start = . ;
65                *(.bss)
66                *(COMMON)
67                end = . ;
68                _end = . ;
69                __end = . ;
70        } >RAM
71}
Note: See TracBrowser for help on using the repository browser.