source: rtems/c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le.coff @ 832d4bfd

4.104.114.84.95
Last change on this file since 832d4bfd was 832d4bfd, checked in by Joel Sherrill <joel.sherrill@…>, on 01/28/03 at 17:54:14

2003-01-28 Joel Sherrill <joel@…>

  • startup/Makefile.am, startup/linkcmds, startup/linkcmds-le, startup/linkcmds-le.coff: Fix to work around truncated section names.
  • Property mode set to 100644
File size: 5.6 KB
Line 
1/*
2 * Memory layout for SH4 GNU simulator.
3 *
4 * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
5 * Author: Victor V. Vengerov <vvv@oktet.ru>
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 *  $Id$
20 */
21
22/* OUTPUT_FORMAT("coff-shl") */
23OUTPUT_FORMAT("elf32-shl")
24OUTPUT_ARCH(sh)
25ENTRY(_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
32MEMORY
33{
34  ram           : o = 0x00000000, l = 0x01000000
35}
36
37/* Sections are defined for RAM loading and monitor debugging */
38SECTIONS
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
84    /*
85     * Special FreeBSD sysctl sections.
86     */
87    . = ALIGN (16);
88    ___start_set_sysctl_set = .;
89    *(set_sysc*);   /* set_sysctl_* but name is truncated by SH-coff */
90    ___stop_set_sysctl_set = ABSOLUTE(.);
91    *(set_doma*);   /* set_domain_* but name is truncated by SH-coff */
92    *(set_pseudo_*);
93
94    /* .gnu.warning sections are handled specially by elf32.em.  */
95    *(.gnu.warning)
96    *(.gnu.linkonce.t*)
97  } > ram
98  _etext = .;
99  PROVIDE (etext = .);
100  .fini    .  : { *(.fini)    } =0
101  .rodata  .  : { *(.rodata) *(.gnu.linkonce.r*) }
102  .rodata1 .  : { *(.rodata1) }
103  /* Adjust the address for the data segment.  We want to adjust up to
104     the same address within the page on the next page up.  */
105  . = ALIGN(128) + (. & (128 - 1));
106  .data  .  :
107  {
108    *(.data)
109    *(.gcc_exc)
110    ___EH_FRAME_BEGIN__ = .;
111    *(.eh_fram*)
112    ___EH_FRAME_END__ = .;
113    LONG(0);
114    *(.gcc_except_table)
115    *(.gnu.linkonce.d*)
116    CONSTRUCTORS
117  } > ram
118  .data1  . : { *(.data1) }
119  .ctors  .       :
120  {
121    ___ctors = .;
122    *(.ctors)
123    ___ctors_end = .;
124  }
125  .dtors  .       :
126  {
127    ___dtors = .;
128    *(.dtors)
129    ___dtors_end = .;
130  }
131  .got     .      : { *(.got.plt) *(.got) }
132  .dynamic .      : { *(.dynamic) }
133  /* We want the small data sections together, so single-instruction offsets
134     can access them all, and initialized data all before uninitialized, so
135     we can shorten the on-disk segment size.  */
136  .sdata   .  : { *(.sdata) }
137  _edata  =  .;
138  PROVIDE (edata = .);
139  __bss_start = .;
140  .sbss    .  : { *(.sbss) *(.scommon) }
141  .bss     .  :
142  {
143   *(.dynbss)
144   *(.bss)
145   *(COMMON)
146  } > ram
147  _end = . ;
148  PROVIDE (end = .);
149
150  . = ALIGN(16);
151  _HeapStart = . ;
152  . = . + _HeapSize ;
153  PROVIDE( _HeapEnd = . );
154
155  . = ALIGN(16);
156  _WorkSpaceStart = . ;
157  . = . + _WorkspaceSize ;
158  PROVIDE(_WorkSpaceEnd = .);
159
160  . = ALIGN(16);
161  .stack . : {
162     . = . + 4096;
163  }
164
165  . = ALIGN(16);
166  _CPU_Interrupt_stack_low  = . ;
167  _CPU_Interrupt_stack_high = _CPU_Interrupt_stack_low + 4096 ;
168
169  /* Stabs debugging sections.  */
170  .stab 0 : { *(.stab) }
171  .stabstr 0 : { *(.stabstr) }
172  .stab.excl 0 : { *(.stab.excl) }
173  .stab.exclstr 0 : { *(.stab.exclstr) }
174  .stab.index 0 : { *(.stab.index) }
175  .stab.indexstr 0 : { *(.stab.indexstr) }
176  .comment 0 : { *(.comment) }
177  /* DWARF debug sections.
178     Symbols in the DWARF debugging sections are relative to the beginning
179     of the section so we begin them at 0.  */
180  /* DWARF 1 */
181  .debug          0 : { *(.debug) }
182  .line           0 : { *(.line) }
183  /* GNU DWARF 1 extensions */
184  .debug_srcinfo  0 : { *(.debug_srcinfo) }
185  .debug_sfnames  0 : { *(.debug_sfnames) }
186  /* DWARF 1.1 and DWARF 2 */
187  .debug_aranges  0 : { *(.debug_aranges) }
188  .debug_pubnames 0 : { *(.debug_pubnames) }
189  /* DWARF 2 */
190  .debug_info     0 : { *(.debug_info) }
191  .debug_abbrev   0 : { *(.debug_abbrev) }
192  .debug_line     0 : { *(.debug_line) }
193  .debug_frame    0 : { *(.debug_frame) }
194  .debug_str      0 : { *(.debug_str) }
195  .debug_loc      0 : { *(.debug_loc) }
196  .debug_macinfo  0 : { *(.debug_macinfo) }
197  /* SGI/MIPS DWARF 2 extensions */
198  .debug_weaknames 0 : { *(.debug_weaknames) }
199  .debug_funcnames 0 : { *(.debug_funcnames) }
200  .debug_typenames 0 : { *(.debug_typenames) }
201  .debug_varnames  0 : { *(.debug_varnames) }
202
203}
Note: See TracBrowser for help on using the repository browser.