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

4.104.114.84.95
Last change on this file since b317117a was b317117a, checked in by Joel Sherrill <joel.sherrill@…>, on 05/30/98 at 15:53:19

clicks_per_usec had to be cut in half (unknown reason).

fixed starting address.

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