source: rtems/c/src/lib/libbsp/h8300/h8sim/startup/linkcmds @ 16a41cc

4.115
Last change on this file since 16a41cc 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.3 KB
Line 
1/*
2 * Declare some sizes.
3 */
4_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
5_RamSize = DEFINED(_RamSize) ? _RamSize : 16M;
6_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0;
7_StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000;
8
9ENTRY("_start")
10/* The memory size is 16M to coincide with the simulator.
11   Don't change either without considering the other.  */
12MEMORY
13{
14  /* 0xc4 is a magic entry.  We should have the linker just
15  skip over it one day... */
16  vectors : o = 0x0000, l = 0xc4
17  magicvectors : o = 0xc4, l = 0x3c
18  /* We still only use 256k as the main ram size.  */
19  ram    : o = 0x0100, l = 0xfffefc /* 16MB RAM --> 0x3fefc */
20  /* The stack starts at the top of main ram.  */
21  topram : o = 0xfffffc, l = 0x4  /* 256K RAM --> 0x3fffc */
22  /* This holds variables in the "tiny" sections.  */
23  tiny   : o = 0xff8000, l = 0x7f00
24  /* At the very top of the address space is the 8-bit area.  */
25  eight  : o = 0xffff00, l = 0x100
26}
27
28
29SECTIONS
30{
31   .vectors :
32   {
33        *(.vectors)
34   }  > vectors
35
36    .text :
37    {
38        *(.text*)
39        *(.gnu.linkonce.t*)
40       
41        /*
42         * Special FreeBSD sysctl sections.
43         */
44        . = ALIGN (16);
45        ___start_set_sysctl_set = .;
46        *(set_sys*);                            /* sysctl set */
47        ___stop_set_sysctl_set = ABSOLUTE(.);
48        *(set_dom*);                            /* domain set */
49        *(set_pse*);
50
51        /*
52         * Read-only data
53         */
54        . = ALIGN (16);
55        PROVIDE(_rodata_start = . );
56        *(.rodata*)
57        *(.gnu.linkonce.r*)
58        PROVIDE(_erodata = . );
59
60         _etext = .;
61    }  >ram
62   .tors SIZEOF(.text) + ADDR(.text): {
63        ___ctors = . ;
64        *(.ctors)
65        ___ctors_end = . ;
66        ___dtors = . ;
67        *(.dtors)
68        ___dtors_end = . ;
69    }  >ram
70    .data SIZEOF(.tors) + ADDR(.tors):
71    {
72        *(.data*)
73        *(.gcc_exc*)
74        CONSTRUCTORS
75         _edata = .;
76    }  >ram
77    .bss SIZEOF(.data) + ADDR(.data):
78    {
79         _bss_start = .;
80        *(.bss* .gnu.linkonce.b.*)
81        *(COMMON)
82        . = ALIGN (64);
83        . += _StackSize;
84        _stack_init = .;
85        _clear_end = .;
86        _WorkAreaBase = .;
87         _end = .;
88         __end = .;
89    } >ram
90    .tiny : {
91        *(.tiny)
92    }  > tiny
93    .eight : {
94        *(.eight)
95    }  > eight
96    .stab 0 (NOLOAD) : {
97        [ .stab ]
98    }
99    .stabstr 0 (NOLOAD) : {
100        [ .stabstr ]
101    }
102
103}
Note: See TracBrowser for help on using the repository browser.