source: rtems/bsps/m68k/csb360/start/linkcmds @ 9964895

5
Last change on this file since 9964895 was 9964895, checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35

bsps: Move startup files to bsps

Adjust build support files to new directory layout.

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 3.0 KB
RevLine 
[02e708d]1/*
2 * This file contains GNU linker directives for the Cogent
3 * CSB360 development board.
4 *
5 * Copyright (C) 2004 Cogent Computer Systems
6 * Author: Jay Monkman <jtm@lopingdog.com>
7 */
8
9/*
10 * Declare size of heap.
11 * A heap size of 0 means "Use all available memory for the heap".
12 * Initial stack located in on-chip SRAM and not declared there.
13 */
[07ce99e]14HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
15RamBase = DEFINED(RamBase) ? RamBase : 0x00100000;
16RamSize = DEFINED(RamSize) ? RamSize : 31M;
[02e708d]17
18/* This is needed for _CPU_ISR_install_vector -
19*  WARNING: it MUST match BSP_RAMBAR !!!!!!!!!!! */
20_VBR = 0x20000000;
21
[eca0eeb3]22ENTRY(start)
23STARTUP(start.o)
24
[02e708d]25/*
26 * Setup the memory map of the CSB360 board
27 *
28 * The "ram" section is placed in RAM after the space used by umon.
29 *
30 */
31MEMORY
32{
33  ram     : ORIGIN = 0x00100000, LENGTH = 31M
34}
35
36SECTIONS
37{
38     
39  /*
40   * Text, data and bss segments
41   */
42   .text :
43   {
[07ce99e]44        RamBase = .;
45        RamBase = .;
[02e708d]46        CREATE_OBJECT_SYMBOLS
[4217b96]47        *(.text*)
[02e708d]48
49        /*
50         * C++ constructors/destructors
51         */
52        *(.gnu.linkonce.t.*)
53
54        /*
55         * Initialization and finalization code.
56         */
57        . = ALIGN (16);
58        PROVIDE (_init = .);
59        *crti.o(.init)
60        *(.init)
61        *crtn.o(.init)
62        . = ALIGN (16);
63        PROVIDE (_fini = .);
64        *crti.o(.fini)
65        *(.fini)
66        *crtn.o(.fini)
67
68        /*
69         * Special FreeBSD sysctl sections.
70         */
71        . = ALIGN (16);
72        __start_set_sysctl_set = .;
73        *(set_sysctl_*);
74        __stop_set_sysctl_set = ABSOLUTE(.);
75        *(set_domain_*);
76        *(set_pseudo_*);
77
78        /*
79         * C++ constructors/destructors
80         */
81        . = ALIGN (16);
82        *crtbegin.o(.ctors)
83        *(.ctors)
84        *crtend.o(.ctors)
85        *crtbegin.o(.dtors)
86        *(.dtors)
87        *crtend.o(.dtors)
88
89        /*
90         * Exception frame info
91         */
92        . = ALIGN (16);
93        *(.eh_frame)
94
95        /*
96         * Read-only data
97         */
98        . = ALIGN (16);
99        _rodata_start = .;
100        *(.rodata*)
[b618d8c]101        KEEP (*(SORT(.rtemsroset.*)))
[02e708d]102        *(.gnu.linkonce.r*)
103
104        . = ALIGN (16);
105        PROVIDE (etext = .);
106
107   } > ram
108
[960fd85]109   .tdata : {
110        _TLS_Data_begin = .;
111        *(.tdata .tdata.* .gnu.linkonce.td.*)
112        _TLS_Data_end = .;
113   } >ram
114
115   .tbss : {
116        _TLS_BSS_begin = .;
117        *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon)
118        _TLS_BSS_end = .;
119   } >ram
120
121   _TLS_Data_size = _TLS_Data_end - _TLS_Data_begin;
[d60e760]122   _TLS_Data_begin = _TLS_Data_size != 0 ? _TLS_Data_begin : _TLS_BSS_begin;
123   _TLS_Data_end = _TLS_Data_size != 0 ? _TLS_Data_end : _TLS_BSS_begin;
[960fd85]124   _TLS_BSS_size = _TLS_BSS_end - _TLS_BSS_begin;
125   _TLS_Size = _TLS_BSS_end - _TLS_Data_begin;
[d60e760]126   _TLS_Alignment = MAX (ALIGNOF (.tdata), ALIGNOF (.tbss));
[960fd85]127
128
[02e708d]129   .data :
130   {
131        copy_start = .;
132        *(.shdata)
133        . = ALIGN (0x10);
[1144653]134        *(.data*)
[b618d8c]135        KEEP (*(SORT(.rtemsrwset.*)))
[02e708d]136        . = ALIGN (0x10);
137        *(.gcc_exc)
[d1f57b5]138        *(.gcc_except_table*)
[02e708d]139        *(.jcr)
140        . = ALIGN (0x10);
141        *(.gnu.linkonce.d*)
142        . = ALIGN (0x10);
143        _edata = .;
144         copy_end = .;
145   } > ram
146
147  .bss :
148  {
149        clear_start = . ;
150        *(.shbss)
[3dae380]151        *(.dynbss)
[4217b96]152        *(.bss* .gnu.linkonce.b.*)
[3dae380]153        *(COMMON)
[02e708d]154        . = ALIGN(0x10);
155        _end = .;
156   
157        clear_end = .;
158
[07ce99e]159        WorkAreaBase = .;
160        WorkAreaBase = .;
[02e708d]161
162  } > ram
163
164  .stab 0 (NOLOAD) :
165  {
166    *(.stab)
167  }
168
169  .stabstr 0 (NOLOAD) :
170  {
171    *(.stabstr)
172  }
173 
174}
Note: See TracBrowser for help on using the repository browser.