1OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc", "elf32-powerpc")
2OUTPUT_ARCH(powerpc)
3
4ENTRY(_start)
5
6SECTIONS
7{
8	. = 0x202000 + SIZEOF_HEADERS;
9
10	__text_begin = .;
11
12	/* text/read-only data */
13	.text :	{ *(.text .text.* .gnu.linkonce.t.*)
14	          *(.rodata .rodata.* .gnu.linkonce.r.*)
15	          *(.sdata2) }
16
17	/* writable data  */
18	/* align to the same offset in the next page (for performance reasons
19	   (not that it really matters in the boot loader)) */
20	. = ALIGN(0x1000) + 0x1000 + (. & (0x1000 - 1));
21
22	.data : {
23		__ctor_list = .;
24		*(.ctors)
25		__ctor_end = .;
26
27		__data_start = .;
28		*(.data .gnu.linkonce.d.*)
29		*(.data.rel.ro.local .data.rel.ro*)
30		*(.got .got2)
31		*(.sdata .sdata.* .gnu.linkonce.s.* .fixup) }
32
33	/* uninitialized data (in same segment as writable data) */
34	__bss_start = .;
35	.bss : { *(.sbss .sbss.* .gnu.linkonce.sb.*)
36
37		*(.bss .bss.* .gnu.linkonce.b.*)
38		. = ALIGN(0x1000);
39	}
40
41	_end = . ;
42
43	/* Strip unnecessary stuff */
44	/DISCARD/ : { *(.comment .note .eh_frame .dtors .debug_* .gnu.attributes) }
45}
46