source: rtems/c/src/lib/libbsp/m68k/gen68360/startup/linkcmds @ 85c92574

4.104.114.84.95
Last change on this file since 85c92574 was 85c92574, checked in by Joel Sherrill <joel.sherrill@…>, on 05/09/02 at 21:37:30

2001-05-09 Joel Sherrill <joel@…>

  • startup/linkcmds: In support of gcc 3.1, added one of more of the sections .jcr, .rodata*, .data.*, .gnu.linkonce.s2.*, .gnu.linkonce.sb2.*, and .gnu.linkonce.s.*. Spacing corrections and direction of segments to memory regions may also have been addressed. This was a sweep across all BSPs.
  • Property mode set to 100644
File size: 4.0 KB
Line 
1/*
2 * This file contains GNU linker directives for a generic MC68360 board.
3 * Variations in memory size and allocation can be made by
4 * overriding some values with linker command-line arguments.
5 *
6 * Saskatchewan Accelerator Laboratory
7 * University of Saskatchewan
8 * Saskatoon, Saskatchewan, CANADA
9 * eric@skatter.usask.ca
10 *
11 *  $Id$
12 */
13
14/*
15 * Declare some sizes.
16 * A heap size of 0 means `use all available memory for the heap'.
17 */
18_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
19_RamSize = DEFINED(_RamSize) ? _RamSize : 64M;
20_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0;
21_StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000;
22
23/*
24 * Declare on-board memory.
25 */
26MEMORY {
27          ram : ORIGIN = 0x00000000, LENGTH = 64M
28          rom : ORIGIN = 0x0F000000, LENGTH = 1M
29        dpram : ORIGIN = 0x0E000000, LENGTH = 8k
30}
31
32/*
33 * Load objects
34 */
35SECTIONS {
36        /*
37         * Boot PROM
38         */
39        rom : {
40                _RomBase = .;
41        } >rom
42
43        /*
44         * Dynamic RAM
45         */
46        ram : {
47                _RamBase = .;
48        } >ram
49
50        /*
51         * Text, data and bss segments
52         */
53        .text : {
54                *(.text)
55
56                /*
57                 * C++ constructors/destructors
58                 */
59                *(.gnu.linkonce.t.*)
60
61                /*
62                 * Initialization and finalization code.
63                 */
64                PROVIDE (_init = .);
65                *crti.o(.init)
66                *(.init)
67                *crtn.o(.init)
68                PROVIDE (_fini = .);
69                *crti.o(.fini)
70                *(.fini)
71                *crtn.o(.fini)
72
73                /*
74                 * C++ constructors/destructors
75                 */
76                . = ALIGN (16);
77                *crtbegin.o(.ctors)
78                *(.ctors)
79                *crtend.o(.ctors)
80                *crtbegin.o(.dtors)
81                *(.dtors)
82                *crtend.o(.dtors)
83
84                /*
85                 * Exception frame info
86                 */
87                . = ALIGN (16);
88                *(.eh_frame)
89
90                /*
91                 * Read-only data
92                 */
93                . = ALIGN (16);
94                _rodata_start = . ;
95                *(.rodata*)
96                *(.gnu.linkonce.r*)
97
98                 . = ALIGN (16);
99                PROVIDE (etext = .);
100        } >ram
101        .data : {
102                _copy_start = .;
103                *(.data)
104                *(.gnu.linkonce.d*)
105                *(.gcc_except_table)
106                *(.jcr)
107                . = ALIGN (16);
108                PROVIDE (edata = .);
109                _copy_end = .;
110        } >ram
111        .bss : {
112                M68Kvec = .;
113                . += (256 * 4);
114                _clear_start = .;
115                *(.bss)
116                *(COMMON)
117                . = ALIGN (16);
118                PROVIDE (end = .);
119
120                . += _StackSize;
121                . = ALIGN (16);
122                _stack_init = .;
123                _clear_end = .;
124
125                _WorkspaceBase = .;
126        } >ram
127
128        /*
129         * On-chip memory/peripherals
130         */
131        dpram : {
132                m360 = .;
133                . += (8 * 1024);
134        } >dpram
135
136  /* Stabs debugging sections.  */
137  .stab 0 : { *(.stab) }
138  .stabstr 0 : { *(.stabstr) }
139  .stab.excl 0 : { *(.stab.excl) }
140  .stab.exclstr 0 : { *(.stab.exclstr) }
141  .stab.index 0 : { *(.stab.index) }
142  .stab.indexstr 0 : { *(.stab.indexstr) }
143  .comment 0 : { *(.comment) }
144
145  /* DWARF debug sections.
146     Symbols in the DWARF debugging sections are relative to the beginning
147     of the section so we begin them at 0.  */
148  /* DWARF 1 */
149  .debug          0 : { *(.debug) }
150  .line           0 : { *(.line) }
151 
152  /* GNU DWARF 1 extensions */
153  .debug_srcinfo  0 : { *(.debug_srcinfo) }
154  .debug_sfnames  0 : { *(.debug_sfnames) }
155 
156  /* DWARF 1.1 and DWARF 2 */
157  .debug_aranges  0 : { *(.debug_aranges) }
158  .debug_pubnames 0 : { *(.debug_pubnames) }
159 
160  /* DWARF 2 */
161  .debug_info     0 : { *(.debug_info) }
162  .debug_abbrev   0 : { *(.debug_abbrev) }
163  .debug_line     0 : { *(.debug_line) }
164  .debug_frame    0 : { *(.debug_frame) }
165  .debug_str      0 : { *(.debug_str) }
166  .debug_loc      0 : { *(.debug_loc) }
167  .debug_macinfo  0 : { *(.debug_macinfo) }
168 
169  /* SGI/MIPS DWARF 2 extensions */
170  .debug_weaknames 0 : { *(.debug_weaknames) }
171  .debug_funcnames 0 : { *(.debug_funcnames) }
172  .debug_typenames 0 : { *(.debug_typenames) }
173  .debug_varnames  0 : { *(.debug_varnames) }
174  /* These must appear regardless of  .  */
175}
Note: See TracBrowser for help on using the repository browser.