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

Last change on this file since 23f689c was 23f689c, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:44:40

2003-09-04 Joel Sherrill <joel@…>

  • clock/ckinit.c, console/console.c, consolex/cTest.c, consolex/consolex.c, consolex/consolex.h, include/bsp.h, include/coverhd.h, include/tod.h, startup/bspclean.c, startup/bspstart.c, startup/linkcmds, timer/timer.c, timer/timerisr.S, tod/tod.c: URL for license changed.
  • 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-1999.
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 : 0x10000;
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                *(.bss)
136                *(COMMON)
137                . = ALIGN (16);
138                PROVIDE (end = .);
139
140                . += _StackSize;
141                . = ALIGN (16);
142                _stack_init = .;
143                _clear_end = .;
144
145                _WorkspaceBase = .;
146        } >ram
147
148  /* Stabs debugging sections.  */
149  .stab 0 : { *(.stab) }
150  .stabstr 0 : { *(.stabstr) }
151  .stab.excl 0 : { *(.stab.excl) }
152  .stab.exclstr 0 : { *(.stab.exclstr) }
153  .stab.index 0 : { *(.stab.index) }
154  .stab.indexstr 0 : { *(.stab.indexstr) }
155  .comment 0 : { *(.comment) }
156
157  /* DWARF debug sections.
158     Symbols in the DWARF debugging sections are relative to the beginning
159     of the section so we begin them at 0.  */
160  /* DWARF 1 */
161  .debug          0 : { *(.debug) }
162  .line           0 : { *(.line) }
163 
164  /* GNU DWARF 1 extensions */
165  .debug_srcinfo  0 : { *(.debug_srcinfo) }
166  .debug_sfnames  0 : { *(.debug_sfnames) }
167 
168  /* DWARF 1.1 and DWARF 2 */
169  .debug_aranges  0 : { *(.debug_aranges) }
170  .debug_pubnames 0 : { *(.debug_pubnames) }
171 
172  /* DWARF 2 */
173  .debug_info     0 : { *(.debug_info) }
174  .debug_abbrev   0 : { *(.debug_abbrev) }
175  .debug_line     0 : { *(.debug_line) }
176  .debug_frame    0 : { *(.debug_frame) }
177  .debug_str      0 : { *(.debug_str) }
178  .debug_loc      0 : { *(.debug_loc) }
179  .debug_macinfo  0 : { *(.debug_macinfo) }
180 
181  /* SGI/MIPS DWARF 2 extensions */
182  .debug_weaknames 0 : { *(.debug_weaknames) }
183  .debug_funcnames 0 : { *(.debug_funcnames) }
184  .debug_typenames 0 : { *(.debug_typenames) }
185  .debug_varnames  0 : { *(.debug_varnames) }
186  /* These must appear regardless of  .  */
187}
Note: See TracBrowser for help on using the repository browser.