source: rtems/c/src/lib/libbsp/powerpc/score603e/startup/linkcmds @ 9c448e1

4.104.114.84.95
Last change on this file since 9c448e1 was 9c448e1, checked in by Joel Sherrill <joel.sherrill@…>, on 02/19/99 at 00:22:33

BSP for Vista Score603e added.

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