OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [sh/] [simsh4/] [startup/] [linkcmds] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
2
 * Memory layout for SH4 GNU simulator.
3
 *
4
 * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
5
 * Author: Victor V. Vengerov 
6
 *
7
 * This program is distributed in the hope that it will be useful,
8
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
 *
11
 *
12
 *  COPYRIGHT (c) 1998-2001.
13
 *  On-Line Applications Research Corporation (OAR).
14
 *
15
 *  The license and distribution terms for this file may be
16
 *  found in the file LICENSE in this distribution or at
17
 *  http://www.OARcorp.com/rtems/license.html.
18
 *
19
 *  linkcmds,v 1.3 2002/05/09 21:34:46 joel Exp
20
 */
21
 
22
/*
23
OUTPUT_FORMAT("coff-sh")
24
 */
25
OUTPUT_ARCH(sh)
26
ENTRY(_start)
27
 
28
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : (512 * 1024);
29
_WorkspaceSize = DEFINED(_WorkspaceSize) ? _WorkspaceSize : (1024 * 1024);
30
 
31
/* These assignments load code into SH7045F EVB SRAM for monitor debugging */
32
 
33
MEMORY
34
{
35
  ram           : o = 0x00000000, l = 0x01000000
36
}
37
 
38
/* Sections are defined for RAM loading and monitor debugging */
39
SECTIONS
40
{
41
 
42
  /* Read-only sections, merged into text segment: */
43
 
44
  . = 0x00004000 ;
45
  .interp        : { *(.interp)         }
46
  .hash          : { *(.hash)           }
47
  .dynsym        : { *(.dynsym)         }
48
  .dynstr        : { *(.dynstr)         }
49
  .gnu.version   : { *(.gnu.version)    }
50
  .gnu.version_d : { *(.gnu.version_d)  }
51
  .gnu.version_r : { *(.gnu.version_r)  }
52
  .rel.text      :
53
    { *(.rel.text) *(.rel.gnu.linkonce.t*) }
54
  .rela.text     :
55
    { *(.rela.text) *(.rela.gnu.linkonce.t*) }
56
  .rel.data      :
57
    { *(.rel.data) *(.rel.gnu.linkonce.d*) }
58
  .rela.data     :
59
    { *(.rela.data) *(.rela.gnu.linkonce.d*) }
60
  .rel.rodata    :
61
    { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
62
  .rela.rodata   :
63
    { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
64
  .rel.got       : { *(.rel.got)                }
65
  .rela.got      : { *(.rela.got)               }
66
  .rel.ctors     : { *(.rel.ctors)      }
67
  .rela.ctors    : { *(.rela.ctors)     }
68
  .rel.dtors     : { *(.rel.dtors)      }
69
  .rela.dtors    : { *(.rela.dtors)     }
70
  .rel.init      : { *(.rel.init)       }
71
  .rela.init     : { *(.rela.init)      }
72
  .rel.fini      : { *(.rel.fini)       }
73
  .rela.fini     : { *(.rela.fini)      }
74
  .rel.bss       : { *(.rel.bss)                }
75
  .rela.bss      : { *(.rela.bss)               }
76
  .rel.plt       : { *(.rel.plt)                }
77
  .rela.plt      : { *(.rela.plt)               }
78
  .init          : { *(.init)   } =0
79
  .plt           : { *(.plt)    }
80
  .text   .      :
81
  {
82
    *(.text)
83
    *(.stub)
84
    /* .gnu.warning sections are handled specially by elf32.em.  */
85
    *(.gnu.warning)
86
    *(.gnu.linkonce.t*)
87
  } > ram
88
  _etext = .;
89
  PROVIDE (etext = .);
90
  .fini    .  : { *(.fini)    } =0
91
  .rodata  .  : { *(.rodata) *(.gnu.linkonce.r*) }
92
  .rodata1 .  : { *(.rodata1) }
93
  /* Adjust the address for the data segment.  We want to adjust up to
94
     the same address within the page on the next page up.  */
95
  . = ALIGN(128) + (. & (128 - 1));
96
  .data  .  :
97
  {
98
    *(.data)
99
    *(.gcc_exc)
100
    *(.gcc_except_table)
101
    *(.gnu.linkonce.d*)
102
    CONSTRUCTORS
103
  } > ram
104
  .data1  . : { *(.data1) }
105
  .ctors  .       :
106
  {
107
    ___ctors = .;
108
    *(.ctors)
109
    ___ctors_end = .;
110
  }
111
  .dtors  .       :
112
  {
113
    ___dtors = .;
114
    *(.dtors)
115
    ___dtors_end = .;
116
  }
117
  .got     .      : { *(.got.plt) *(.got) }
118
  .dynamic .      : { *(.dynamic) }
119
  /* We want the small data sections together, so single-instruction offsets
120
     can access them all, and initialized data all before uninitialized, so
121
     we can shorten the on-disk segment size.  */
122
  .sdata   .  : { *(.sdata) }
123
  _edata  =  .;
124
  PROVIDE (edata = .);
125
  __bss_start = .;
126
  .sbss    .  : { *(.sbss) *(.scommon) }
127
  .bss     .  :
128
  {
129
   *(.dynbss)
130
   *(.bss)
131
   *(COMMON)
132
  } > ram
133
  _end = . ;
134
  PROVIDE (end = .);
135
 
136
  . = ALIGN(16);
137
  _HeapStart = . ;
138
  . = . + _HeapSize ;
139
  PROVIDE( _HeapEnd = . );
140
 
141
  . = ALIGN(16);
142
  _WorkSpaceStart = . ;
143
  . = . + _WorkspaceSize ;
144
  PROVIDE(_WorkSpaceEnd = .);
145
 
146
  . = ALIGN(16);
147
  .stack . : {
148
     . = . + 4096;
149
  }
150
 
151
  . = ALIGN(16);
152
  _CPU_Interrupt_stack_low  = . ;
153
  _CPU_Interrupt_stack_high = _CPU_Interrupt_stack_low + 4096 ;
154
 
155
  /* Stabs debugging sections.  */
156
  .stab 0 : { *(.stab) }
157
  .stabstr 0 : { *(.stabstr) }
158
  .stab.excl 0 : { *(.stab.excl) }
159
  .stab.exclstr 0 : { *(.stab.exclstr) }
160
  .stab.index 0 : { *(.stab.index) }
161
  .stab.indexstr 0 : { *(.stab.indexstr) }
162
  .comment 0 : { *(.comment) }
163
  /* DWARF debug sections.
164
     Symbols in the DWARF debugging sections are relative to the beginning
165
     of the section so we begin them at 0.  */
166
  /* DWARF 1 */
167
  .debug          0 : { *(.debug) }
168
  .line           0 : { *(.line) }
169
  /* GNU DWARF 1 extensions */
170
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
171
  .debug_sfnames  0 : { *(.debug_sfnames) }
172
  /* DWARF 1.1 and DWARF 2 */
173
  .debug_aranges  0 : { *(.debug_aranges) }
174
  .debug_pubnames 0 : { *(.debug_pubnames) }
175
  /* DWARF 2 */
176
  .debug_info     0 : { *(.debug_info) }
177
  .debug_abbrev   0 : { *(.debug_abbrev) }
178
  .debug_line     0 : { *(.debug_line) }
179
  .debug_frame    0 : { *(.debug_frame) }
180
  .debug_str      0 : { *(.debug_str) }
181
  .debug_loc      0 : { *(.debug_loc) }
182
  .debug_macinfo  0 : { *(.debug_macinfo) }
183
  /* SGI/MIPS DWARF 2 extensions */
184
  .debug_weaknames 0 : { *(.debug_weaknames) }
185
  .debug_funcnames 0 : { *(.debug_funcnames) }
186
  .debug_typenames 0 : { *(.debug_typenames) }
187
  .debug_varnames  0 : { *(.debug_varnames) }
188
 
189
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.