source: rtems/c/src/lib/libbsp/m68k/mvme162/startup/linkcmds @ 4773369

4.104.115
Last change on this file since 4773369 was 4773369, checked in by Joel Sherrill <joel.sherrill@…>, on 09/16/08 at 19:03:40

2008-09-16 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac, clock/ckinit.c, startup/bspstart.c, startup/linkcmds: Add use of bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization. Remove unnecessary includes of rtems/libio.h and rtems/libcsupport.h.
  • Property mode set to 100644
File size: 5.0 KB
Line 
1/*
2 *  This file contains directives for the GNU linker which are specific
3 *  to the Motorola MVME162 board.
4 *
5 *  COPYRIGHT (c) 1989-2007.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *  Modifications of respective RTEMS file: COPYRIGHT (c) 1994.
13 *  EISCAT Scientific Association. M.Savitski
14 *
15 *  This material is a part of the MVME162 Board Support Package
16 *  for the RTEMS executive. Its licensing policies are those of the
17 *  RTEMS above.
18 *
19 *  $Id$
20 */
21
22/*
23 * Declare some sizes.
24 */
25_RamBase = DEFINED(_RamBase) ? _RamBase : 0x20000;
26_RamSize = DEFINED(_RamSize) ? _RamSize : 1M;
27_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0;
28_StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000;
29
30MEMORY
31{
32        ram : org = 0x000000, l = 1M
33}
34
35SECTIONS
36{
37        ram : {
38                . = .;
39        } >ram
40
41        /*
42         * Text, data and bss segments
43         */
44        .text 0x20000 : {
45                *(.text*)
46
47                /*
48                 * C++ constructors/destructors
49                 */
50                *(.gnu.linkonce.t.*)
51
52                /*
53                 * Initialization and finalization code.
54                 *
55                 * Various files can provide initialization and finalization
56                 * functions.  crtbegin.o and crtend.o are two instances. The
57                 * body of these functions are in .init and .fini sections. We
58                 * accumulate the bodies here, and prepend function prologues
59                 * from crti.o and function epilogues from crtn.o. crti.o must
60                 * be linked first; crtn.o must be linked last.  Because these
61                 * are wildcards, it doesn't matter if the user does not
62                 * actually link against crti.o and crtn.o; the linker won't
63                 * look for a file to match a wildcard.  The wildcard also
64                 * means that it doesn't matter which directory crti.o and
65                 * crtn.o are in.
66                 */
67                PROVIDE (_init = .);
68                *crti.o(.init)
69                *(.init)
70                *crtn.o(.init)
71                PROVIDE (_fini = .);
72                *crti.o(.fini)
73                *(.fini)
74                *crtn.o(.fini)
75
76                /*
77                 * Special FreeBSD sysctl sections.
78                 */
79                . = ALIGN (16);
80                __start_set_sysctl_set = .;
81                *(set_sysctl_*);
82                __stop_set_sysctl_set = ABSOLUTE(.);
83                *(set_domain_*);
84                *(set_pseudo_*);
85
86                /*
87                 * C++ constructors/destructors
88                 *
89                 * gcc uses crtbegin.o to find the start of the constructors
90                 * and destructors so we make sure it is first.  Because this
91                 * is a wildcard, it doesn't matter if the user does not
92                 * actually link against crtbegin.o; the linker won't look for
93                 * a file to match a wildcard.  The wildcard also means that
94                 * it doesn't matter which directory crtbegin.o is in. The
95                 * constructor and destructor list are terminated in
96                 * crtend.o.  The same comments apply to it.
97                 */
98                . = ALIGN (16);
99                *crtbegin.o(.ctors)
100                *(.ctors)
101                *crtend.o(.ctors)
102                *crtbegin.o(.dtors)
103                *(.dtors)
104                *crtend.o(.dtors)
105
106                /*
107                 * Exception frame info
108                 */
109                . = ALIGN (16);
110                *(.eh_frame)
111
112                /*
113                 * Read-only data
114                 */
115                . = ALIGN (16);
116                _rodata_start = .;
117                *(.rodata*)
118                *(.gnu.linkonce.r*)
119
120                 . = ALIGN (16);
121                PROVIDE (_etext = .);
122        } >ram
123        .data : {
124                PROVIDE (_copy_start = .);
125                *(.data*)
126                *(.gnu.linkonce.d*)
127                *(.gcc_except_table*)
128                *(.jcr)
129                . = ALIGN (16);
130                PROVIDE (_edata = .);
131                PROVIDE (_copy_end = .);
132        } >ram
133        .bss : {
134                _clear_start = .;
135                *(.dynbss)
136                *(.bss* .gnu.linkonce.b.*)
137                *(COMMON)
138                . = ALIGN (16);
139                PROVIDE (end = .);
140
141                . += _StackSize;
142                . = ALIGN (16);
143                _stack_init = .;
144                _clear_end = .;
145
146                _WorkspaceBase = .;
147        } >ram
148
149  /* Stabs debugging sections.  */
150  .stab 0 : { *(.stab) }
151  .stabstr 0 : { *(.stabstr) }
152  .stab.excl 0 : { *(.stab.excl) }
153  .stab.exclstr 0 : { *(.stab.exclstr) }
154  .stab.index 0 : { *(.stab.index) }
155  .stab.indexstr 0 : { *(.stab.indexstr) }
156  .comment 0 : { *(.comment) }
157
158  /* DWARF debug sections.
159     Symbols in the DWARF debugging sections are relative to the beginning
160     of the section so we begin them at 0.  */
161  /* DWARF 1 */
162  .debug          0 : { *(.debug) }
163  .line           0 : { *(.line) }
164 
165  /* GNU DWARF 1 extensions */
166  .debug_srcinfo  0 : { *(.debug_srcinfo) }
167  .debug_sfnames  0 : { *(.debug_sfnames) }
168 
169  /* DWARF 1.1 and DWARF 2 */
170  .debug_aranges  0 : { *(.debug_aranges) }
171  .debug_pubnames 0 : { *(.debug_pubnames) }
172 
173  /* DWARF 2 */
174  .debug_info     0 : { *(.debug_info) }
175  .debug_abbrev   0 : { *(.debug_abbrev) }
176  .debug_line     0 : { *(.debug_line) }
177  .debug_frame    0 : { *(.debug_frame) }
178  .debug_str      0 : { *(.debug_str) }
179  .debug_loc      0 : { *(.debug_loc) }
180  .debug_macinfo  0 : { *(.debug_macinfo) }
181 
182  /* SGI/MIPS DWARF 2 extensions */
183  .debug_weaknames 0 : { *(.debug_weaknames) }
184  .debug_funcnames 0 : { *(.debug_funcnames) }
185  .debug_typenames 0 : { *(.debug_typenames) }
186  .debug_varnames  0 : { *(.debug_varnames) }
187  /* These must appear regardless of  .  */
188}
Note: See TracBrowser for help on using the repository browser.