source: rtems/c/src/lib/libbsp/m68k/gen68360/startup/linkcmds @ 62fdded

4.104.114.84.95
Last change on this file since 62fdded was 9c1133e, checked in by Joel Sherrill <joel.sherrill@…>, on 01/20/03 at 19:57:14

mkChangeLogList [-n]

  • Property mode set to 100644
File size: 4.1 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                 * Special FreeBSD sysctl sections.
75                 */
76                . = ALIGN (16);
77                __start_set_sysctl_set = .;
78                *(set_sysctl_*);
79                __stop_set_sysctl_set = ABSOLUTE(.);
80                *(set_domain_*);
81                *(set_pseudo_*);
82
83                /*
84                 * C++ constructors/destructors
85                 */
86                . = ALIGN (16);
87                *crtbegin.o(.ctors)
88                *(.ctors)
89                *crtend.o(.ctors)
90                *crtbegin.o(.dtors)
91                *(.dtors)
92                *crtend.o(.dtors)
93
94                /*
95                 * Exception frame info
96                 */
97                . = ALIGN (16);
98                *(.eh_frame)
99
100                /*
101                 * Read-only data
102                 */
103                . = ALIGN (16);
104                _rodata_start = . ;
105                *(.rodata*)
106                *(.gnu.linkonce.r*)
107
108                 . = ALIGN (16);
109                PROVIDE (etext = .);
110        } >ram
111        .data : {
112                _copy_start = .;
113                *(.data)
114                *(.gnu.linkonce.d*)
115                *(.gcc_except_table)
116                *(.jcr)
117                . = ALIGN (16);
118                PROVIDE (edata = .);
119                _copy_end = .;
120        } >ram
121        .bss : {
122                M68Kvec = .;
123                . += (256 * 4);
124                _clear_start = .;
125                *(.bss)
126                *(COMMON)
127                . = ALIGN (16);
128                PROVIDE (end = .);
129
130                . += _StackSize;
131                . = ALIGN (16);
132                _stack_init = .;
133                _clear_end = .;
134
135                _WorkspaceBase = .;
136        } >ram
137
138        /*
139         * On-chip memory/peripherals
140         */
141        dpram : {
142                m360 = .;
143                . += (8 * 1024);
144        } >dpram
145
146  /* Stabs debugging sections.  */
147  .stab 0 : { *(.stab) }
148  .stabstr 0 : { *(.stabstr) }
149  .stab.excl 0 : { *(.stab.excl) }
150  .stab.exclstr 0 : { *(.stab.exclstr) }
151  .stab.index 0 : { *(.stab.index) }
152  .stab.indexstr 0 : { *(.stab.indexstr) }
153  .comment 0 : { *(.comment) }
154
155  /* DWARF debug sections.
156     Symbols in the DWARF debugging sections are relative to the beginning
157     of the section so we begin them at 0.  */
158  /* DWARF 1 */
159  .debug          0 : { *(.debug) }
160  .line           0 : { *(.line) }
161 
162  /* GNU DWARF 1 extensions */
163  .debug_srcinfo  0 : { *(.debug_srcinfo) }
164  .debug_sfnames  0 : { *(.debug_sfnames) }
165 
166  /* DWARF 1.1 and DWARF 2 */
167  .debug_aranges  0 : { *(.debug_aranges) }
168  .debug_pubnames 0 : { *(.debug_pubnames) }
169 
170  /* DWARF 2 */
171  .debug_info     0 : { *(.debug_info) }
172  .debug_abbrev   0 : { *(.debug_abbrev) }
173  .debug_line     0 : { *(.debug_line) }
174  .debug_frame    0 : { *(.debug_frame) }
175  .debug_str      0 : { *(.debug_str) }
176  .debug_loc      0 : { *(.debug_loc) }
177  .debug_macinfo  0 : { *(.debug_macinfo) }
178 
179  /* SGI/MIPS DWARF 2 extensions */
180  .debug_weaknames 0 : { *(.debug_weaknames) }
181  .debug_funcnames 0 : { *(.debug_funcnames) }
182  .debug_typenames 0 : { *(.debug_typenames) }
183  .debug_varnames  0 : { *(.debug_varnames) }
184  /* These must appear regardless of  .  */
185}
Note: See TracBrowser for help on using the repository browser.