blob: 70aef3241c8e448f0f379e29943f8563a8772be3 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Christophe Leroy53193a42017-07-07 10:16:42 +02002/*
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>
Christophe Leroy53193a42017-07-07 10:16:42 +020010 */
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)
Christophe Leroy53193a42017-07-07 10:16:42 +020020 arch/powerpc/cpu/mpc8xx/traps.o (.text*)
Christophe Leroy53193a42017-07-07 10:16:42 +020021 arch/powerpc/lib/built-in.o (.text*)
Christophe Leroy53193a42017-07-07 10:16:42 +020022 drivers/net/built-in.o (.text*)
23
Christophe Leroy0fb62202018-03-16 17:20:55 +010024 . = DEFINED(env_offset) ? env_offset : .;
25 env/embedded.o (.text.environment)
26
Christophe Leroy53193a42017-07-07 10:16:42 +020027 *(.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
Christophe Leroyf55db0a2018-11-21 08:51:43 +000071 /*
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
Christophe Leroy53193a42017-07-07 10:16:42 +020077 . = 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)