source: rtems/c/src/lib/libbsp/m68k/csb360/startup/linkcmds @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 2.4 KB
Line 
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 */
14HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
15RamBase = DEFINED(RamBase) ? RamBase : 0x00100000;
16RamSize = DEFINED(RamSize) ? RamSize : 31M;
17
18/* This is needed for _CPU_ISR_install_vector -
19*  WARNING: it MUST match BSP_RAMBAR !!!!!!!!!!! */
20_VBR = 0x20000000;
21
22/*
23 * Setup the memory map of the CSB360 board
24 *
25 * The "ram" section is placed in RAM after the space used by umon.
26 *
27 */
28MEMORY
29{
30  ram     : ORIGIN = 0x00100000, LENGTH = 31M
31}
32
33SECTIONS
34{
35     
36  /*
37   * Text, data and bss segments
38   */
39   .text :
40   {
41        RamBase = .;
42        RamBase = .;
43        CREATE_OBJECT_SYMBOLS
44        *(.text*)
45
46        /*
47         * C++ constructors/destructors
48         */
49        *(.gnu.linkonce.t.*)
50
51        /*
52         * Initialization and finalization code.
53         */
54        . = ALIGN (16);
55        PROVIDE (_init = .);
56        *crti.o(.init)
57        *(.init)
58        *crtn.o(.init)
59        . = ALIGN (16);
60        PROVIDE (_fini = .);
61        *crti.o(.fini)
62        *(.fini)
63        *crtn.o(.fini)
64
65        /*
66         * Special FreeBSD sysctl sections.
67         */
68        . = ALIGN (16);
69        __start_set_sysctl_set = .;
70        *(set_sysctl_*);
71        __stop_set_sysctl_set = ABSOLUTE(.);
72        *(set_domain_*);
73        *(set_pseudo_*);
74
75        /*
76         * C++ constructors/destructors
77         */
78        . = ALIGN (16);
79        *crtbegin.o(.ctors)
80        *(.ctors)
81        *crtend.o(.ctors)
82        *crtbegin.o(.dtors)
83        *(.dtors)
84        *crtend.o(.dtors)
85
86        /*
87         * Exception frame info
88         */
89        . = ALIGN (16);
90        *(.eh_frame)
91
92        /*
93         * Read-only data
94         */
95        . = ALIGN (16);
96        _rodata_start = .;
97        *(.rodata*)
98        *(.gnu.linkonce.r*)
99
100        . = ALIGN (16);
101        PROVIDE (etext = .);
102
103   } > ram
104
105   .data :
106   {
107        copy_start = .;
108        *(.shdata)
109        . = ALIGN (0x10);
110        *(.data*)
111        . = ALIGN (0x10);
112        *(.gcc_exc)
113        *(.gcc_except_table*)
114        *(.jcr)
115        . = ALIGN (0x10);
116        *(.gnu.linkonce.d*)
117        . = ALIGN (0x10);
118        _edata = .;
119         copy_end = .;
120   } > ram
121
122  .bss :
123  {
124        clear_start = . ;
125        *(.shbss)
126        *(.dynbss)
127        *(.bss* .gnu.linkonce.b.*)
128        *(COMMON)
129        . = ALIGN(0x10);
130        _end = .;
131   
132        clear_end = .;
133
134        WorkAreaBase = .;
135        WorkAreaBase = .;
136
137  } > ram
138
139  .stab 0 (NOLOAD) :
140  {
141    *(.stab)
142  }
143
144  .stabstr 0 (NOLOAD) :
145  {
146    *(.stabstr)
147  }
148 
149}
Note: See TracBrowser for help on using the repository browser.