xref: /openbmc/qemu/pc-bios/vof/vof.lds (revision 30b6852c)
1OUTPUT_FORMAT("elf32-powerpc")
2OUTPUT_ARCH(powerpc:common)
3
4/* set the entry point */
5ENTRY ( __start )
6
7SECTIONS {
8	__executable_start = .;
9
10	.text : {
11		*(.text)
12	}
13
14	__etext = .;
15
16	. = ALIGN(8);
17
18	.data : {
19		*(.data)
20		*(.rodata .rodata.*)
21		*(.got1)
22		*(.sdata)
23		*(.opd)
24	}
25
26	/* FIXME bss at end ??? */
27
28	. = ALIGN(8);
29	__bss_start = .;
30	.bss : {
31		*(.sbss) *(.scommon)
32		*(.dynbss)
33		*(.bss)
34	}
35
36	. = ALIGN(8);
37	__bss_end = .;
38	__bss_size = (__bss_end - __bss_start);
39
40	. = ALIGN(256);
41	__toc_start = DEFINED (.TOC.) ? .TOC. : ADDR (.got) + 0x8000;
42	.got :
43	{
44		 *(.toc .got)
45	}
46	. = ALIGN(8);
47	__toc_end = .;
48}
49