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

4.104.114.84.95
Last change on this file since 0e5db091 was 0e5db091, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 25, 2004 at 2:21:43 PM

2004-07-25 Joel Sherrill <joel@…>

  • 3c509/3c509.c: Add <sys/errno.h>.
  • startup/linkcmds: Add .jcr section.
  • Property mode set to 100644
File size: 3.9 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-1999.
24| *  On-Line Applications Research Corporation (OAR).
25| *
26| *  The license and distribution terms for this file may be
27| *  found in found in the file LICENSE in this distribution or at
28| *  http://www.rtems.com/license/LICENSE.
29| **************************************************************************
30|
31|  $Id$
32+--------------------------------------------------------------------------*/
33
34
35SECTIONS
36{
37/*  .m_hdr : 
38  {
39    . = ALIGN(4);
40    *(.m_hdr)
41  }
42*/
43  .text :
44  {
45    _text_start = . ;
46    . = ALIGN(4);
47    *(.m_hdr)
48    *(.text)
49    . = ALIGN (16);
50
51    /*
52     * Special FreeBSD sysctl sections.
53     */
54    . = ALIGN (16);
55    __start_set_sysctl_set = .;
56    *(set_sysctl_*);
57    __stop_set_sysctl_set = ABSOLUTE(.);
58    *(set_domain_*);
59    *(set_pseudo_*);
60
61    *(.eh_frame)
62    . = ALIGN (16);
63
64    *(.gnu.linkonce.t*)
65
66    /*
67     * C++ constructors
68     */
69    __CTOR_LIST__ = .;
70    LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
71    *(.ctors)
72    LONG(0)
73    __CTOR_END__ = .;
74    __DTOR_LIST__ = .;
75    LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
76    *(.dtors)
77    LONG(0)
78    __DTOR_END__ = .;
79
80    _rodata_start = . ;
81    *(.rodata*)
82    *(.gnu.linkonce.r*)
83    _erodata = ALIGN( 0x10 ) ;
84
85    *(.jcr)
86    _etext = ALIGN( 0x10 ) ;
87  }
88
89  .init : { *(.init) } = 0x9090
90  .fini : { *(.fini) } = 0x9090
91  .data ADDR( .fini ) + SIZEOF( .fini ):
92  {
93    _data_start = . ;
94    *(.data)
95    *(.gnu.linkonce.d*)
96    *(.gcc_except_table)
97    _edata = ALIGN( 0x10 ) ;
98  }
99
100  .bss ADDR( .data ) + SIZEOF( .data ):
101  {
102    _bss_start = . ;
103    *(.bss)
104    *(COMMON)
105    _end = . ;
106    __end = . ;
107  }
108
109  /* Stabs debugging sections.  */
110  .stab 0 : { *(.stab) }
111  .stabstr 0 : { *(.stabstr) }
112  .stab.excl 0 : { *(.stab.excl) }
113  .stab.exclstr 0 : { *(.stab.exclstr) }
114  .stab.index 0 : { *(.stab.index) }
115  .stab.indexstr 0 : { *(.stab.indexstr) }
116  .comment 0 : { *(.comment) }
117 
118  /* DWARF debug sections.
119     Symbols in the DWARF debugging sections are relative to the beginning
120     of the section so we begin them at 0.  */
121  /* DWARF 1 */
122  .debug          0 : { *(.debug) }
123  .line           0 : { *(.line) }
124 
125  /* GNU DWARF 1 extensions */
126  .debug_srcinfo  0 : { *(.debug_srcinfo) }
127  .debug_sfnames  0 : { *(.debug_sfnames) }
128 
129  /* DWARF 1.1 and DWARF 2 */
130  .debug_aranges  0 : { *(.debug_aranges) }
131  .debug_pubnames 0 : { *(.debug_pubnames) }
132 
133  /* DWARF 2 */
134  .debug_info     0 : { *(.debug_info) }
135  .debug_abbrev   0 : { *(.debug_abbrev) }
136  .debug_line     0 : { *(.debug_line) }
137  .debug_frame    0 : { *(.debug_frame) }
138  .debug_str      0 : { *(.debug_str) }
139  .debug_loc      0 : { *(.debug_loc) }
140  .debug_macinfo  0 : { *(.debug_macinfo) }
141 
142  /* SGI/MIPS DWARF 2 extensions */
143  .debug_weaknames 0 : { *(.debug_weaknames) }
144  .debug_funcnames 0 : { *(.debug_funcnames) }
145  .debug_typenames 0 : { *(.debug_typenames) }
146  .debug_varnames  0 : { *(.debug_varnames) }
147  /* These must appear regardless of  .  */
148}
149
Note: See TracBrowser for help on using the repository browser.