source: rtems/c/src/lib/libbsp/powerpc/ppcn_60x/startup/linkcmds @ 85c92574

4.104.114.84.95
Last change on this file since 85c92574 was 85c92574, checked in by Joel Sherrill <joel.sherrill@…>, on 05/09/02 at 21:37:30

2001-05-09 Joel Sherrill <joel@…>

  • startup/linkcmds: In support of gcc 3.1, added one of more of the sections .jcr, .rodata*, .data.*, .gnu.linkonce.s2.*, .gnu.linkonce.sb2.*, and .gnu.linkonce.s.*. Spacing corrections and direction of segments to memory regions may also have been addressed. This was a sweep across all BSPs.
  • 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.67 Mhz * 1000) / 4 cycles per click
11 */
12
13SECTIONS
14{
15  .vectors 0x00100 :
16  {
17    *(.vectors)
18  }
19
20  /* Read-only sections, merged into text segment: */
21  /* SDS ROM worked at 0x30000                     */
22  . = 0x30000;
23  .interp   : { *(.interp) }
24  .hash           : { *(.hash)          }
25  .dynsym         : { *(.dynsym)                }
26  .dynstr         : { *(.dynstr)                }
27  .rela.text      : { *(.rela.text)     }
28  .rela.data      : { *(.rela.data)     }
29  .rela.rodata    : { *(.rela.rodata)   }
30  .rela.got       : { *(.rela.got)      }
31  .rela.got1      : { *(.rela.got1)     }
32  .rela.got2      : { *(.rela.got2)     }
33  .rela.ctors     : { *(.rela.ctors)    }
34  .rela.dtors     : { *(.rela.dtors)    }
35  .rela.init      : { *(.rela.init)     }
36  .rela.fini      : { *(.rela.fini)     }
37  .rela.bss       : { *(.rela.bss)      }
38  .rela.plt       : { *(.rela.plt)      }
39  .rela.sdata     : { *(.rela.sdata2)   }
40  .rela.sbss      : { *(.rela.sbss2)    }
41  .rela.sdata2    : { *(.rela.sdata2)   }
42  .rela.sbss2     : { *(.rela.sbss2)    }
43  .plt   : { *(.plt) }
44  .text      :
45  {
46    *(.text)
47    *(.gnu.linkonce.t.*)
48    *(.descriptors)
49    /* .gnu.warning sections are handled specially by elf32.em.  */
50    *(.gnu.warning)
51  } =0
52  .init           : { _init = .; *(.init)       }
53  .fini           : { _fini = .; *(.fini)       }
54  .rodata         : { *(.rodata*) *(.gnu.linkonce.r*) }
55  .rodata1        : { *(.rodata1) }
56  .eh_frame       : { *.(eh_frame) }
57  _etext = .;
58  PROVIDE (etext = .);
59  PROVIDE (__SDATA2_START__ = .);
60  .sdata2         : { *(.sdata2) *(.gnu.linkonce.s2.*)  }
61  .sbss2          : { *(.sbss2) *(.gnu.linkonce.sb2.*)  }
62  PROVIDE (__SBSS2_START__ = .);
63  .sbss2   : { *(.sbss2) }
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    *(.gnu.linkonce.d.*)
85    CONSTRUCTORS
86  }
87  PROVIDE (__EXCEPT_START__ = .);
88  .gcc_except_table   : { *(.gcc_except_table) }
89  PROVIDE (__EXCEPT_END__ = .);
90
91  .data1   : { *(.data1) }
92  .got1           : { *(.got1) }
93  .dynamic        : { *(.dynamic) }
94  /* Put .ctors and .dtors next to the .got2 section, so that the pointers
95     get relocated with -mrelocatable. Also put in the .fixup pointers.
96     The current compiler no longer needs this, but keep it around for 2.7.2  */
97                PROVIDE (_GOT2_START_ = .);
98  .got2           :  { *(.got2) }
99                PROVIDE (__GOT2_END__ = .);
100                PROVIDE (__CTOR_LIST__ = .);
101  .ctors          : { *(.ctors) }
102                PROVIDE (__CTOR_END__ = .);
103                PROVIDE (__DTOR_LIST__ = .);
104  .dtors          : { *(.dtors) }
105                PROVIDE (__DTOR_END__ = .);
106                PROVIDE (_FIXUP_START_ = .);
107  .fixup          : { *(.fixup) }
108                PROVIDE (_FIXUP_END_ = .);
109                PROVIDE (__FIXUP_END__ = .);
110                PROVIDE (_GOT2_END_ = .);
111                PROVIDE (_GOT_START_ = .);
112  s.got = .;
113  .got            : { *(.got) }
114  .got.plt        : { *(.got.plt) }
115                PROVIDE (_GOT_END_ = .);
116                PROVIDE (__GOT_END__ = .);
117  /* We want the small data sections together, so single-instruction offsets
118     can access them all, and initialized data all before uninitialized, so
119     we can shorten the on-disk segment size.  */
120  PROVIDE (__SDATA_START__ = .);
121  .sdata     : { *(.sdata) *(.gnu.linkonce.s.*) }
122  _edata  =  .;
123  PROVIDE (edata = .);
124  . =  ALIGN(8) + 0x1000;
125  PROVIDE (__SBSS_START__ = .);
126  .sbss      :
127  {
128    PROVIDE (__sbss_start = .);
129    *(.sbss)
130    *(.scommon)
131    PROVIDE (__sbss_end = .);
132  }
133  PROVIDE (__SBSS_END__ = .);
134  .bss       :
135  {
136   PROVIDE (__bss_start = .);
137   *(.dynbss)
138   *(.bss)
139   *(COMMON)
140   PROVIDE (__bss_end = .);
141  }
142  . =  ALIGN(8) + 0x8000;
143  PROVIDE (__stack = .);
144  _end = . ;
145  PROVIDE (end = .);
146
147  /* These are needed for ELF backends which have not yet been
148     converted to the new style linker.  */
149  .stab 0 : { *(.stab) }
150  .stabstr 0 : { *(.stabstr) }
151  /* DWARF debug sections.
152     Symbols in the DWARF debugging sections are relative to the beginning
153     of the section so we begin them at 0.  */
154  /* DWARF 1 */
155  .debug          0 : { *(.debug) }
156  .line           0 : { *(.line) }
157  /* GNU DWARF 1 extensions */
158  .debug_srcinfo  0 : { *(.debug_srcinfo) }
159  .debug_sfnames  0 : { *(.debug_sfnames) }
160  /* DWARF 1.1 and DWARF 2 */
161  .debug_aranges  0 : { *(.debug_aranges) }
162  .debug_pubnames 0 : { *(.debug_pubnames) }
163  /* DWARF 2 */
164  .debug_info     0 : { *(.debug_info) }
165  .debug_abbrev   0 : { *(.debug_abbrev) }
166  .debug_line     0 : { *(.debug_line) }
167  .debug_frame    0 : { *(.debug_frame) }
168  .debug_str      0 : { *(.debug_str) }
169  .debug_loc      0 : { *(.debug_loc) }
170  .debug_macinfo  0 : { *(.debug_macinfo) }
171  /* SGI/MIPS DWARF 2 extensions */
172  .debug_weaknames 0 : { *(.debug_weaknames) }
173  .debug_funcnames 0 : { *(.debug_funcnames) }
174  .debug_typenames 0 : { *(.debug_typenames) }
175  .debug_varnames  0 : { *(.debug_varnames) }
176  /* These must appear regardless of  .  */
177}
Note: See TracBrowser for help on using the repository browser.