source: rtems/c/src/lib/libbsp/powerpc/mvme2307/startup/linkcmds @ 19ca797

4.104.114.84.95
Last change on this file since 19ca797 was 19ca797, checked in by Joel Sherrill <joel.sherrill@…>, on 10/04/99 at 20:41:28

Motorola MVME2307 BSP submitted by Jay Kulpinski <jskulpin@…>.
No modifications made.

  • Property mode set to 100644
File size: 6.2 KB
RevLine 
[19ca797]1/*
2 *
3 *  COPYRIGHT (c) 1989-1998.
4 *  On-Line Applications Research Corporation (OAR).
5 *  Copyright assigned to U.S. Government, 1994.
6 *
7 *  The license and distribution terms for this file may be
8 *  found in found in the file LICENSE in this distribution or at
9 *  http://www.OARcorp.com/rtems/license.html.
10 *
11 *  $Id$
12 */
13
14OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc",
15              "elf32-powerpc")
16OUTPUT_ARCH(powerpc)
17ENTRY(_start)
18 /*SEARCH_DIR(/usr1/gnu/cross/powerpc-unknown-eabi//powerpc-unknown-eabi/lib); */
19/* Do we need any of these for elf?
20   __DYNAMIC = 0;    */
21MEMORY
22  {
23        /* VECTORS : ORIGIN = 0x0,    LENGTH = 0x4000 */
24        /* reserve top 1M for PPCBUG */
25        RAM     : ORIGIN = 0x4000, LENGTH = 63M - 0x4000
26  }
27
28SECTIONS
29{
30/*
31  PROVIDE(ppcbug_reset = 0xfff04000);
32  PROVIDE(ppcbug_general = 0xfff04120);
33  .vectors 0x00000100 :
34  {
35    *(.vectors)
36  } >VECTORS
37*/
38
39  /* Read-only sections, merged into text segment: */
40  /* . = 0x40000 + SIZEOF_HEADERS; */
41  . = 0x4000;
42  .interp         : { *(.interp) }
43  .hash           : { *(.hash)          }
44  .dynsym         : { *(.dynsym)                }
45  .dynstr         : { *(.dynstr)                }
46  .rela.text      : { *(.rela.text)     }
47  .rela.data      : { *(.rela.data)     }
48  .rela.rodata    : { *(.rela.rodata)   }
49  .rela.got       : { *(.rela.got)      }
50  .rela.got1      : { *(.rela.got1)     }
51  .rela.got2      : { *(.rela.got2)     }
52  .rela.ctors     : { *(.rela.ctors)    }
53  .rela.dtors     : { *(.rela.dtors)    }
54  .rela.init      : { *(.rela.init)     }
55  .rela.fini      : { *(.rela.fini)     }
56  .rela.bss       : { *(.rela.bss)      }
57  .rela.plt       : { *(.rela.plt)      }
58  .rela.sdata     : { *(.rela.sdata2)   }
59  .rela.sbss      : { *(.rela.sbss2)    }
60  .rela.sdata2    : { *(.rela.sdata2)   }
61  .rela.sbss2     : { *(.rela.sbss2)    }
62  .plt            : { *(.plt)           }
63  .text      :
64  {
65    PROVIDE (__text_start = .);
66    *(.text)
67     *(.gnu.linkonce.t.*)
68    *(.descriptors)
69    /* .gnu.warning sections are handled specially by elf32.em.  */
70    *(.gnu.warning)
71  } >RAM
72  .init           : { *(.init)          } >RAM
73  .fini           : { *(.fini)          } >RAM
74  .rodata         : { *(.rodata) *(.gnu.linkonce.r*) } >RAM
75  .rodata1        : { *(.rodata1)       } >RAM
76  _etext = .;
77  PROVIDE (etext = .);
78  PROVIDE (__SDATA2_START__ = .);
79  .sdata2         : { *(.sdata2)        } >RAM
80  .sbss2          : { *(.sbss2)         } >RAM
81  PROVIDE (__SBSS2_END__ = .);
82  /* Adjust the address for the data segment.  We want to adjust up to
83     the same address within the page on the next page up.  It would
84     be more correct to do this:
85       . = ALIGN(0x40000) + (ALIGN(8) & (0x40000 - 1));
86     The current expression does not correctly handle the case of a
87     text segment ending precisely at the end of a page; it causes the
88     data segment to skip a page.  The above expression does not have
89     this problem, but it will currently (2/95) cause BFD to allocate
90     a single segment, combining both text and data, for this case.
91     This will prevent the text segment from being shared among
92     multiple executions of the program; I think that is more
93     important than losing a page of the virtual address space (note
94     that no actual memory is lost; the page which is skipped can not
95     be referenced).  */
96  /* . =  ALIGN(8) + 0x40000; */
97  .data    :
98  {
99    *(.data)
100    *(.gnu.linkonce.d.*)
101    CONSTRUCTORS
102  } >RAM
103  PROVIDE (__EXCEPT_START__ = .);
104  .gcc_except_table   : { *(.gcc_except_table) } >RAM
105  PROVIDE (__EXCEPT_END__ = .);
106
107  .data1          : { *(.data1)         } >RAM
108  .got1           : { *(.got1)          } >RAM
109  .dynamic        : { *(.dynamic)       } >RAM
110  /* Put .ctors and .dtors next to the .got2 section, so that the pointers
111     get relocated with -mrelocatable. Also put in the .fixup pointers.
112     The current compiler no longer needs this, but keep it around for 2.7.2  */
113   PROVIDE (__GOT2_START__ = .);
114   PROVIDE (_GOT2_START_ = .);
115  .got2           :  { *(.got2)         } >RAM
116  PROVIDE (__GOT2_END__ = .);
117  PROVIDE (_GOT2_END_ = .);
118
119  PROVIDE (__CTOR_LIST__ = .);
120  .ctors          : { *(.ctors)         } >RAM
121  PROVIDE (__CTOR_END__ = .);
122
123  PROVIDE (__DTOR_LIST__ = .);
124  .dtors          : { *(.dtors)         } >RAM
125  PROVIDE (__DTOR_END__ = .);
126
127  PROVIDE (__FIXUP_START__ = .);
128  PROVIDE (_FIXUP_START_ = .);
129  .fixup          : { *(.fixup)         } >RAM
130  PROVIDE (_FIXUP_END_ = .);
131  PROVIDE (__FIXUP_END__ = .);
132
133  PROVIDE (__GOT_START__ = .);
134  PROVIDE (_GOT_START_ = .);
135  s.got = .;
136  .got            : { *(.got)           } >RAM
137  .got.plt        : { *(.got.plt)       } >RAM
138  PROVIDE (_GOT_END_ = .);
139  PROVIDE (__GOT_END__ = .);
140
141  /* We want the small data sections together, so single-instruction offsets
142     can access them all, and initialized data all before uninitialized, so
143     we can shorten the on-disk segment size.  */
144  PROVIDE (__SDATA_START__ = .);
145  .sdata          : { *(.sdata)         } >RAM
146  _edata  =  .;
147  PROVIDE (edata = .);
148
149  PROVIDE (RAM_END = 0x3f0000);
150  .sbss      :
151  {
152    PROVIDE (__sbss_start = .);
153    *(.sbss)
154    *(.scommon)
155    PROVIDE (__sbss_end = .);
156  } >RAM
157  PROVIDE (__SBSS_END__ = .);
158
159  .bss       :
160  {
161   PROVIDE (__bss_start = .);
162   *(.dynbss)
163   *(.bss)
164   *(COMMON)
165  } >RAM
166  . =  ALIGN(8) + 0x8000;
167  PROVIDE(__stack = .);
168  PROVIDE (_end = .);
169  PROVIDE (end = .);
170
171  /* These are needed for ELF backends which have not yet been
172     converted to the new style linker.  */
173  .stab 0 : { *(.stab) }
174  .stabstr 0 : { *(.stabstr) }
175  /* DWARF debug sections.
176     Symbols in the DWARF debugging sections are relative to the beginning
177     of the section so we begin them at 0.  */
178  /* DWARF 1 */
179  .debug          0 : { *(.debug) }
180  .line           0 : { *(.line) }
181  /* GNU DWARF 1 extensions */
182  .debug_srcinfo  0 : { *(.debug_srcinfo) }
183  .debug_sfnames  0 : { *(.debug_sfnames) }
184  /* DWARF 1.1 and DWARF 2 */
185  .debug_aranges  0 : { *(.debug_aranges) }
186  .debug_pubnames 0 : { *(.debug_pubnames) }
187  /* DWARF 2 */
188  .debug_info     0 : { *(.debug_info) }
189  .debug_abbrev   0 : { *(.debug_abbrev) }
190  .debug_line     0 : { *(.debug_line) }
191  .debug_frame    0 : { *(.debug_frame) }
192  .debug_str      0 : { *(.debug_str) }
193  .debug_loc      0 : { *(.debug_loc) }
194  .debug_macinfo  0 : { *(.debug_macinfo) }
195  /* SGI/MIPS DWARF 2 extensions */
196  .debug_weaknames 0 : { *(.debug_weaknames) }
197  .debug_funcnames 0 : { *(.debug_funcnames) }
198  .debug_typenames 0 : { *(.debug_typenames) }
199  .debug_varnames  0 : { *(.debug_varnames) }
200  /* These must appear regardless of  .  */
201}
Note: See TracBrowser for help on using the repository browser.