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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [sh/] [simsh4/] [startup/] [linkcmds-le.coff] - 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-le.coff,v 1.1 2001/10/11 21:04:35 joel Exp
20
 */
21
 
22
/* OUTPUT_FORMAT("coff-shl") */
23
OUTPUT_FORMAT("elf32-shl")
24
OUTPUT_ARCH(sh)
25
ENTRY(_start)
26
 
27
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : (512 * 1024);
28
_WorkspaceSize = DEFINED(_WorkspaceSize) ? _WorkspaceSize : (1024 * 1024);
29
 
30
/* These assignments load code into SH7045F EVB SRAM for monitor debugging */
31
 
32
MEMORY
33
{
34
  ram           : o = 0x00000000, l = 0x01000000
35
}
36
 
37
/* Sections are defined for RAM loading and monitor debugging */
38
SECTIONS
39
{
40
 
41
  /* Read-only sections, merged into text segment: */
42
 
43
  . = 0x00004000 ;
44
  .interp        : { *(.interp)         }
45
  .hash          : { *(.hash)           }
46
  .dynsym        : { *(.dynsym)         }
47
  .dynstr        : { *(.dynstr)         }
48
  .gnu.version   : { *(.gnu.version)    }
49
  .gnu.version_d : { *(.gnu.version_d)  }
50
  .gnu.version_r : { *(.gnu.version_r)  }
51
  .rel.text      :
52
    { *(.rel.text) *(.rel.gnu.linkonce.t*) }
53
  .rela.text     :
54
    { *(.rela.text) *(.rela.gnu.linkonce.t*) }
55
  .rel.data      :
56
    { *(.rel.data) *(.rel.gnu.linkonce.d*) }
57
  .rela.data     :
58
    { *(.rela.data) *(.rela.gnu.linkonce.d*) }
59
  .rel.rodata    :
60
    { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
61
  .rela.rodata   :
62
    { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
63
  .rel.got       : { *(.rel.got)                }
64
  .rela.got      : { *(.rela.got)               }
65
  .rel.ctors     : { *(.rel.ctors)      }
66
  .rela.ctors    : { *(.rela.ctors)     }
67
  .rel.dtors     : { *(.rel.dtors)      }
68
  .rela.dtors    : { *(.rela.dtors)     }
69
  .rel.init      : { *(.rel.init)       }
70
  .rela.init     : { *(.rela.init)      }
71
  .rel.fini      : { *(.rel.fini)       }
72
  .rela.fini     : { *(.rela.fini)      }
73
  .rel.bss       : { *(.rel.bss)                }
74
  .rela.bss      : { *(.rela.bss)               }
75
  .rel.plt       : { *(.rel.plt)                }
76
  .rela.plt      : { *(.rela.plt)               }
77
  .init          : { *(.init)   } =0
78
  .plt           : { *(.plt)    }
79
  .text   .      :
80
  {
81
    *(.text)
82
    *(.stub)
83
    /* .gnu.warning sections are handled specially by elf32.em.  */
84
    *(.gnu.warning)
85
    *(.gnu.linkonce.t*)
86
  } > ram
87
  _etext = .;
88
  PROVIDE (etext = .);
89
  .fini    .  : { *(.fini)    } =0
90
  .rodata  .  : { *(.rodata) *(.gnu.linkonce.r*) }
91
  .rodata1 .  : { *(.rodata1) }
92
  /* Adjust the address for the data segment.  We want to adjust up to
93
     the same address within the page on the next page up.  */
94
  . = ALIGN(128) + (. & (128 - 1));
95
  .data  .  :
96
  {
97
    *(.data)
98
    *(.gnu.linkonce.d*)
99
    CONSTRUCTORS
100
  } > ram
101
  .data1  . : { *(.data1) }
102
  .ctors  .       :
103
  {
104
    ___ctors = .;
105
    *(.ctors)
106
    ___ctors_end = .;
107
  }
108
  .dtors  .       :
109
  {
110
    ___dtors = .;
111
    *(.dtors)
112
    ___dtors_end = .;
113
  }
114
  .got     .      : { *(.got.plt) *(.got) }
115
  .dynamic .      : { *(.dynamic) }
116
  /* We want the small data sections together, so single-instruction offsets
117
     can access them all, and initialized data all before uninitialized, so
118
     we can shorten the on-disk segment size.  */
119
  .sdata   .  : { *(.sdata) }
120
  _edata  =  .;
121
  PROVIDE (edata = .);
122
  __bss_start = .;
123
  .sbss    .  : { *(.sbss) *(.scommon) }
124
  .bss     .  :
125
  {
126
   *(.dynbss)
127
   *(.bss)
128
   *(COMMON)
129
  } > ram
130
  _end = . ;
131
  PROVIDE (end = .);
132
 
133
  . = ALIGN(16);
134
  _HeapStart = . ;
135
  . = . + _HeapSize ;
136
  PROVIDE( _HeapEnd = . );
137
 
138
  . = ALIGN(16);
139
  _WorkSpaceStart = . ;
140
  . = . + _WorkspaceSize ;
141
  PROVIDE(_WorkSpaceEnd = .);
142
 
143
  . = ALIGN(16);
144
  .stack . : {
145
     . = . + 4096;
146
  }
147
 
148
  . = ALIGN(16);
149
  _CPU_Interrupt_stack_low  = . ;
150
  _CPU_Interrupt_stack_high = _CPU_Interrupt_stack_low + 4096 ;
151
 
152
  /* Stabs debugging sections.  */
153
  .stab 0 : { *(.stab) }
154
  .stabstr 0 : { *(.stabstr) }
155
  .stab.excl 0 : { *(.stab.excl) }
156
  .stab.exclstr 0 : { *(.stab.exclstr) }
157
  .stab.index 0 : { *(.stab.index) }
158
  .stab.indexstr 0 : { *(.stab.indexstr) }
159
  .comment 0 : { *(.comment) }
160
  /* DWARF debug sections.
161
     Symbols in the DWARF debugging sections are relative to the beginning
162
     of the section so we begin them at 0.  */
163
  /* DWARF 1 */
164
  .debug          0 : { *(.debug) }
165
  .line           0 : { *(.line) }
166
  /* GNU DWARF 1 extensions */
167
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
168
  .debug_sfnames  0 : { *(.debug_sfnames) }
169
  /* DWARF 1.1 and DWARF 2 */
170
  .debug_aranges  0 : { *(.debug_aranges) }
171
  .debug_pubnames 0 : { *(.debug_pubnames) }
172
  /* DWARF 2 */
173
  .debug_info     0 : { *(.debug_info) }
174
  .debug_abbrev   0 : { *(.debug_abbrev) }
175
  .debug_line     0 : { *(.debug_line) }
176
  .debug_frame    0 : { *(.debug_frame) }
177
  .debug_str      0 : { *(.debug_str) }
178
  .debug_loc      0 : { *(.debug_loc) }
179
  .debug_macinfo  0 : { *(.debug_macinfo) }
180
  /* SGI/MIPS DWARF 2 extensions */
181
  .debug_weaknames 0 : { *(.debug_weaknames) }
182
  .debug_funcnames 0 : { *(.debug_funcnames) }
183
  .debug_typenames 0 : { *(.debug_typenames) }
184
  .debug_varnames  0 : { *(.debug_varnames) }
185
 
186
}

powered by: WebSVN 2.1.0

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