1*36653c3fSWarner LoshOUTPUT_ARCH(powerpc:common)
2*36653c3fSWarner LoshENTRY(_start)
3*36653c3fSWarner LoshSEARCH_DIR(/usr/lib);
4*36653c3fSWarner LoshPROVIDE (__stack = 0);
5*36653c3fSWarner LoshPHDRS
6*36653c3fSWarner Losh{
7*36653c3fSWarner Losh	text PT_LOAD;
8*36653c3fSWarner Losh}
9*36653c3fSWarner LoshSECTIONS
10*36653c3fSWarner Losh{
11*36653c3fSWarner Losh  /* Read-only sections, merged into text segment: */
12*36653c3fSWarner Losh  . = 0x02c00000 + SIZEOF_HEADERS;
13*36653c3fSWarner Losh  .interp     : { *(.interp) 	} :text
14*36653c3fSWarner Losh  .hash          : { *(.hash)		}
15*36653c3fSWarner Losh  .dynsym        : { *(.dynsym)		}
16*36653c3fSWarner Losh  .dynstr        : { *(.dynstr)		}
17*36653c3fSWarner Losh  .gnu.version   : { *(.gnu.version)	}
18*36653c3fSWarner Losh  .gnu.version_d   : { *(.gnu.version_d)	}
19*36653c3fSWarner Losh  .gnu.version_r   : { *(.gnu.version_r)	}
20*36653c3fSWarner Losh  .rela.text     :
21*36653c3fSWarner Losh    { *(.rela.text) *(.rela.gnu.linkonce.t*) }
22*36653c3fSWarner Losh  .rela.data     :
23*36653c3fSWarner Losh    { *(.rela.data) *(.rela.gnu.linkonce.d*) }
24*36653c3fSWarner Losh  .rela.rodata   :
25*36653c3fSWarner Losh    { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
26*36653c3fSWarner Losh  .rela.got      : { *(.rela.got)		}
27*36653c3fSWarner Losh  .rela.got1     : { *(.rela.got1)		}
28*36653c3fSWarner Losh  .rela.got2     : { *(.rela.got2)		}
29*36653c3fSWarner Losh  .rela.ctors    : { *(.rela.ctors)	}
30*36653c3fSWarner Losh  .rela.dtors    : { *(.rela.dtors)	}
31*36653c3fSWarner Losh  .rela.init     : { *(.rela.init)	}
32*36653c3fSWarner Losh  .rela.fini     : { *(.rela.fini)	}
33*36653c3fSWarner Losh  .rela.bss      : { *(.rela.bss)		}
34*36653c3fSWarner Losh  .rela.plt      : { *(.rela.plt)		}
35*36653c3fSWarner Losh  .rela.sdata    : { *(.rela.sdata)		}
36*36653c3fSWarner Losh  .rela.sbss     : { *(.rela.sbss)		}
37*36653c3fSWarner Losh  .rela.sdata2   : { *(.rela.sdata2)		}
38*36653c3fSWarner Losh  .rela.sbss2    : { *(.rela.sbss2)		}
39*36653c3fSWarner Losh  .text      :
40*36653c3fSWarner Losh  {
41*36653c3fSWarner Losh    *(.text)
42*36653c3fSWarner Losh    /* .gnu.warning sections are handled specially by elf32.em.  */
43*36653c3fSWarner Losh    *(.gnu.warning)
44*36653c3fSWarner Losh    *(.gnu.linkonce.t*)
45*36653c3fSWarner Losh  } =0
46*36653c3fSWarner Losh  _etext = .;
47*36653c3fSWarner Losh  PROVIDE (etext = .);
48*36653c3fSWarner Losh  .init      : { *(.init)    } =0
49*36653c3fSWarner Losh  .fini      : { *(.fini)    } =0
50*36653c3fSWarner Losh  .rodata    : { *(.rodata) *(.gnu.linkonce.r*) }
51*36653c3fSWarner Losh  .rodata1   : { *(.rodata1) }
52*36653c3fSWarner Losh  .sdata2    : { *(.sdata2)  }
53*36653c3fSWarner Losh  .sbss2     : { *(.sbss2)   }
54*36653c3fSWarner Losh  /* Adjust the address for the data segment to the next page up. */
55*36653c3fSWarner Losh  . = ((. + 0x1000) & ~(0x1000 - 1));
56*36653c3fSWarner Losh  .data.rel.ro : { *(.data.rel.ro*) }
57*36653c3fSWarner Losh  .data    :
58*36653c3fSWarner Losh  {
59*36653c3fSWarner Losh    *(.data)
60*36653c3fSWarner Losh    *(.gnu.linkonce.d*)
61*36653c3fSWarner Losh    CONSTRUCTORS
62*36653c3fSWarner Losh  }
63*36653c3fSWarner Losh  .data1   : { *(.data1) }
64*36653c3fSWarner Losh  .got1           : { *(.got1) }
65*36653c3fSWarner Losh  .dynamic        : { *(.dynamic) }
66*36653c3fSWarner Losh  /* Put .ctors and .dtors next to the .got2 section, so that the pointers
67*36653c3fSWarner Losh     get relocated with -mrelocatable. Also put in the .fixup pointers.
68*36653c3fSWarner Losh     The current compiler no longer needs this, but keep it around for 2.7.2  */
69*36653c3fSWarner Losh                PROVIDE (_GOT2_START_ = .);
70*36653c3fSWarner Losh  .got2           :  { *(.got2) }
71*36653c3fSWarner Losh                PROVIDE (__CTOR_LIST__ = .);
72*36653c3fSWarner Losh  .ctors          : { *(.ctors) }
73*36653c3fSWarner Losh                PROVIDE (__CTOR_END__ = .);
74*36653c3fSWarner Losh                PROVIDE (__DTOR_LIST__ = .);
75*36653c3fSWarner Losh  .dtors          : { *(.dtors) }
76*36653c3fSWarner Losh                PROVIDE (__DTOR_END__ = .);
77*36653c3fSWarner Losh                PROVIDE (_FIXUP_START_ = .);
78*36653c3fSWarner Losh  .fixup          : { *(.fixup) }
79*36653c3fSWarner Losh                PROVIDE (_FIXUP_END_ = .);
80*36653c3fSWarner Losh                PROVIDE (_GOT2_END_ = .);
81*36653c3fSWarner Losh                PROVIDE (_GOT_START_ = .);
82*36653c3fSWarner Losh  .got            : { *(.got) }
83*36653c3fSWarner Losh  .got.plt        : { *(.got.plt) }
84*36653c3fSWarner Losh                PROVIDE (_GOT_END_ = .);
85*36653c3fSWarner Losh  /* We want the small data sections together, so single-instruction offsets
86*36653c3fSWarner Losh     can access them all, and initialized data all before uninitialized, so
87*36653c3fSWarner Losh     we can shorten the on-disk segment size.  */
88*36653c3fSWarner Losh  .sdata     : { *(.sdata) }
89*36653c3fSWarner Losh  _edata  =  .;
90*36653c3fSWarner Losh  PROVIDE (edata = .);
91*36653c3fSWarner Losh  .sbss      :
92*36653c3fSWarner Losh  {
93*36653c3fSWarner Losh    PROVIDE (__sbss_start = .);
94*36653c3fSWarner Losh    *(.sbss)
95*36653c3fSWarner Losh    *(.scommon)
96*36653c3fSWarner Losh    *(.dynsbss)
97*36653c3fSWarner Losh    PROVIDE (__sbss_end = .);
98*36653c3fSWarner Losh  }
99*36653c3fSWarner Losh  .plt   : { *(.plt) }
100*36653c3fSWarner Losh  .bss       :
101*36653c3fSWarner Losh  {
102*36653c3fSWarner Losh   PROVIDE (__bss_start = .);
103*36653c3fSWarner Losh   *(.dynbss)
104*36653c3fSWarner Losh   *(.bss)
105*36653c3fSWarner Losh   *(COMMON)
106*36653c3fSWarner Losh  }
107*36653c3fSWarner Losh  _end = . ;
108*36653c3fSWarner Losh  PROVIDE (end = .);
109*36653c3fSWarner Losh  /* Stabs debugging sections.  */
110*36653c3fSWarner Losh  .stab 0 : { *(.stab) }
111*36653c3fSWarner Losh  .stabstr 0 : { *(.stabstr) }
112*36653c3fSWarner Losh  /* DWARF debug sections.
113*36653c3fSWarner Losh     Symbols in the DWARF debugging sections are relative to the beginning
114*36653c3fSWarner Losh     of the section so we begin them at 0.  */
115*36653c3fSWarner Losh  /* DWARF 1 */
116*36653c3fSWarner Losh  .debug          0 : { *(.debug) }
117*36653c3fSWarner Losh  .line           0 : { *(.line) }
118*36653c3fSWarner Losh  /* GNU DWARF 1 extensions */
119*36653c3fSWarner Losh  .debug_srcinfo  0 : { *(.debug_srcinfo) }
120*36653c3fSWarner Losh  .debug_sfnames  0 : { *(.debug_sfnames) }
121*36653c3fSWarner Losh  /* DWARF 1.1 and DWARF 2 */
122*36653c3fSWarner Losh  .debug_aranges  0 : { *(.debug_aranges) }
123*36653c3fSWarner Losh  .debug_pubnames 0 : { *(.debug_pubnames) }
124*36653c3fSWarner Losh  /* DWARF 2 */
125*36653c3fSWarner Losh  .debug_info     0 : { *(.debug_info) }
126*36653c3fSWarner Losh  .debug_abbrev   0 : { *(.debug_abbrev) }
127*36653c3fSWarner Losh  .debug_line     0 : { *(.debug_line) }
128*36653c3fSWarner Losh  .debug_frame    0 : { *(.debug_frame) }
129*36653c3fSWarner Losh  .debug_str      0 : { *(.debug_str) }
130*36653c3fSWarner Losh  .debug_loc      0 : { *(.debug_loc) }
131*36653c3fSWarner Losh  .debug_macinfo  0 : { *(.debug_macinfo) }
132*36653c3fSWarner Losh  /* SGI/MIPS DWARF 2 extensions */
133*36653c3fSWarner Losh  .debug_weaknames 0 : { *(.debug_weaknames) }
134*36653c3fSWarner Losh  .debug_funcnames 0 : { *(.debug_funcnames) }
135*36653c3fSWarner Losh  .debug_typenames 0 : { *(.debug_typenames) }
136*36653c3fSWarner Losh  .debug_varnames  0 : { *(.debug_varnames) }
137*36653c3fSWarner Losh  /* These must appear regardless of  .  */
138*36653c3fSWarner Losh}
139*36653c3fSWarner Losh
140