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