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

4.104.114.84.95
Last change on this file since 296cc30e was 296cc30e, checked in by Joel Sherrill <joel.sherrill@…>, on 01/20/03 at 20:10:42

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

  • startup/linkcmds-le, startup/linkcmds-le.coff: Add FreeBSD sysctl() sections.
  • Property mode set to 100644
File size: 5.4 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_sysctl_*);
90    __stop_set_sysctl_set = ABSOLUTE(.);
91    *(set_domain_*);
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    *(.gnu.linkonce.d*)
110    CONSTRUCTORS
111  } > ram
112  .data1  . : { *(.data1) }
113  .ctors  .       :
114  {
115    ___ctors = .;
116    *(.ctors)
117    ___ctors_end = .;
118  }
119  .dtors  .       :
120  {
121    ___dtors = .;
122    *(.dtors)
123    ___dtors_end = .;
124  }
125  .got     .      : { *(.got.plt) *(.got) }
126  .dynamic .      : { *(.dynamic) }
127  /* We want the small data sections together, so single-instruction offsets
128     can access them all, and initialized data all before uninitialized, so
129     we can shorten the on-disk segment size.  */
130  .sdata   .  : { *(.sdata) }
131  _edata  =  .;
132  PROVIDE (edata = .);
133  __bss_start = .;
134  .sbss    .  : { *(.sbss) *(.scommon) }
135  .bss     .  :
136  {
137   *(.dynbss)
138   *(.bss)
139   *(COMMON)
140  } > ram
141  _end = . ;
142  PROVIDE (end = .);
143
144  . = ALIGN(16);
145  _HeapStart = . ;
146  . = . + _HeapSize ;
147  PROVIDE( _HeapEnd = . );
148
149  . = ALIGN(16);
150  _WorkSpaceStart = . ;
151  . = . + _WorkspaceSize ;
152  PROVIDE(_WorkSpaceEnd = .);
153
154  . = ALIGN(16);
155  .stack . : {
156     . = . + 4096;
157  }
158
159  . = ALIGN(16);
160  _CPU_Interrupt_stack_low  = . ;
161  _CPU_Interrupt_stack_high = _CPU_Interrupt_stack_low + 4096 ;
162
163  /* Stabs debugging sections.  */
164  .stab 0 : { *(.stab) }
165  .stabstr 0 : { *(.stabstr) }
166  .stab.excl 0 : { *(.stab.excl) }
167  .stab.exclstr 0 : { *(.stab.exclstr) }
168  .stab.index 0 : { *(.stab.index) }
169  .stab.indexstr 0 : { *(.stab.indexstr) }
170  .comment 0 : { *(.comment) }
171  /* DWARF debug sections.
172     Symbols in the DWARF debugging sections are relative to the beginning
173     of the section so we begin them at 0.  */
174  /* DWARF 1 */
175  .debug          0 : { *(.debug) }
176  .line           0 : { *(.line) }
177  /* GNU DWARF 1 extensions */
178  .debug_srcinfo  0 : { *(.debug_srcinfo) }
179  .debug_sfnames  0 : { *(.debug_sfnames) }
180  /* DWARF 1.1 and DWARF 2 */
181  .debug_aranges  0 : { *(.debug_aranges) }
182  .debug_pubnames 0 : { *(.debug_pubnames) }
183  /* DWARF 2 */
184  .debug_info     0 : { *(.debug_info) }
185  .debug_abbrev   0 : { *(.debug_abbrev) }
186  .debug_line     0 : { *(.debug_line) }
187  .debug_frame    0 : { *(.debug_frame) }
188  .debug_str      0 : { *(.debug_str) }
189  .debug_loc      0 : { *(.debug_loc) }
190  .debug_macinfo  0 : { *(.debug_macinfo) }
191  /* SGI/MIPS DWARF 2 extensions */
192  .debug_weaknames 0 : { *(.debug_weaknames) }
193  .debug_funcnames 0 : { *(.debug_funcnames) }
194  .debug_typenames 0 : { *(.debug_typenames) }
195  .debug_varnames  0 : { *(.debug_varnames) }
196
197}
Note: See TracBrowser for help on using the repository browser.