1/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2010-2017 CS Systemes d'Information
4 * Christophe Leroy <christophe.leroy@c-s.fr>
5 *
6 * (C) Copyright 2001-2003
7 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8 *
9 * Modified by Yuli Barcohen <yuli@arabellasw.com>
10 */
11
12OUTPUT_ARCH(powerpc)
13SECTIONS
14{
15	/* Read-only sections, merged into text segment: */
16	. = + SIZEOF_HEADERS;
17	.text          :
18	{
19		arch/powerpc/cpu/mpc8xx/start.o	(.text)
20		arch/powerpc/cpu/mpc8xx/traps.o	(.text*)
21		arch/powerpc/lib/built-in.o		(.text*)
22		drivers/net/built-in.o		(.text*)
23
24		. = DEFINED(env_offset) ? env_offset : .;
25		env/embedded.o			(.text.environment)
26
27		*(.text)
28	}
29	_etext = .;
30	PROVIDE (etext = .);
31	.rodata    :
32	{
33		*(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
34	}
35
36	/* Read-write section, merged into data segment: */
37	. = (. + 0x0FFF) & 0xFFFFF000;
38	_erotext = .;
39	PROVIDE (erotext = .);
40	.reloc   :
41	{
42		_GOT2_TABLE_ = .;
43		KEEP(*(.got2))
44		KEEP(*(.got))
45		_FIXUP_TABLE_ = .;
46		KEEP(*(.fixup))
47	}
48	__got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
49	__fixup_entries = (. - _FIXUP_TABLE_) >> 2;
50
51	.data    :
52	{
53		*(.data*)
54		*(.sdata*)
55	}
56	_edata  =  .;
57	PROVIDE (edata = .);
58
59	. = .;
60
61	. = ALIGN(4);
62	.u_boot_list : {
63		KEEP(*(SORT(.u_boot_list*)));
64	}
65
66	. = .;
67	__start___ex_table = .;
68	__ex_table : { *(__ex_table) }
69	__stop___ex_table = .;
70
71	/*
72	 * _end - This is end of u-boot.bin image.
73	 * dtb will be appended here to make u-boot-dtb.bin
74	 */
75	_end = .;
76
77	. = ALIGN(4096);
78	__init_begin = .;
79	.text.init : { *(.text.init) }
80	.data.init : { *(.data.init) }
81	. = ALIGN(4096);
82	__init_end = .;
83
84	__bss_start = .;
85	.bss (NOLOAD)       :
86	{
87		*(.bss*)
88		*(.sbss*)
89		*(COMMON)
90		. = ALIGN(4);
91	}
92	__bss_end = . ;
93	PROVIDE (end = .);
94}
95ENTRY(_start)
96