source: rtems/c/src/lib/libbsp/powerpc/dmv177/startup/linkcmds @ c932d85

4.104.114.84.95
Last change on this file since c932d85 was c932d85, checked in by Joel Sherrill <joel.sherrill@…>, on 05/30/98 at 10:09:14

New files -- from rtems-LM-980406 which was based on an RTEMS from 12/97.
This was called the dmv170 BSP in that source tree but since the DMV171
is now obsolete, we have transitioned to the DMV177 and have no intention
of checking compatibility with any other models.

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