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

4.104.114.84.95
Last change on this file since 7b0c547a was 7b0c547a, checked in by Joel Sherrill <joel.sherrill@…>, on 01/20/03 at 19:53:27

2003-01-20 Joel Sherrill <joel@…>

  • startup/linkcmds: Add FreeBSD SYSCTL() sections for networking.
  • 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.OARcorp.com/rtems/license.html.
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    _etext = ALIGN( 0x10 ) ;
86  }
87
88  .init : { *(.init) } = 0x9090
89  .fini : { *(.fini) } = 0x9090
90  .data ADDR( .fini ) + SIZEOF( .fini ):
91  {
92    _data_start = . ;
93    *(.data)
94    *(.gnu.linkonce.d*)
95    *(.gcc_except_table)
96    _edata = ALIGN( 0x10 ) ;
97  }
98
99  .bss ADDR( .data ) + SIZEOF( .data ):
100  {
101    _bss_start = . ;
102    *(.bss)
103    *(COMMON)
104    _end = . ;
105    __end = . ;
106  }
107
108  /* Stabs debugging sections.  */
109  .stab 0 : { *(.stab) }
110  .stabstr 0 : { *(.stabstr) }
111  .stab.excl 0 : { *(.stab.excl) }
112  .stab.exclstr 0 : { *(.stab.exclstr) }
113  .stab.index 0 : { *(.stab.index) }
114  .stab.indexstr 0 : { *(.stab.indexstr) }
115  .comment 0 : { *(.comment) }
116 
117  /* DWARF debug sections.
118     Symbols in the DWARF debugging sections are relative to the beginning
119     of the section so we begin them at 0.  */
120  /* DWARF 1 */
121  .debug          0 : { *(.debug) }
122  .line           0 : { *(.line) }
123 
124  /* GNU DWARF 1 extensions */
125  .debug_srcinfo  0 : { *(.debug_srcinfo) }
126  .debug_sfnames  0 : { *(.debug_sfnames) }
127 
128  /* DWARF 1.1 and DWARF 2 */
129  .debug_aranges  0 : { *(.debug_aranges) }
130  .debug_pubnames 0 : { *(.debug_pubnames) }
131 
132  /* DWARF 2 */
133  .debug_info     0 : { *(.debug_info) }
134  .debug_abbrev   0 : { *(.debug_abbrev) }
135  .debug_line     0 : { *(.debug_line) }
136  .debug_frame    0 : { *(.debug_frame) }
137  .debug_str      0 : { *(.debug_str) }
138  .debug_loc      0 : { *(.debug_loc) }
139  .debug_macinfo  0 : { *(.debug_macinfo) }
140 
141  /* SGI/MIPS DWARF 2 extensions */
142  .debug_weaknames 0 : { *(.debug_weaknames) }
143  .debug_funcnames 0 : { *(.debug_funcnames) }
144  .debug_typenames 0 : { *(.debug_typenames) }
145  .debug_varnames  0 : { *(.debug_varnames) }
146  /* These must appear regardless of  .  */
147}
148
Note: See TracBrowser for help on using the repository browser.