blob: 94f07c6b7dd201663cad43d018c1fba6538ed1a3 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Joe Hamman8ac27322007-08-09 15:10:53 -05002/*
3 * Copyright 2006, 2007 Freescale Semiconductor, Inc.
Joe Hamman8ac27322007-08-09 15:10:53 -05004 */
5
6OUTPUT_ARCH(powerpc)
7
8SECTIONS
9{
10
11 /* Read-only sections, merged into text segment: */
Joe Hamman8ac27322007-08-09 15:10:53 -050012 .text :
13 {
Wolfgang Denk4e2894b2010-11-22 08:31:41 +010014 arch/powerpc/cpu/mpc86xx/start.o (.text*)
15 arch/powerpc/cpu/mpc86xx/traps.o (.text*)
Peter Tyser68337fb2010-09-29 14:05:55 -050016 *(.text*)
Joe Hamman8ac27322007-08-09 15:10:53 -050017 }
18 _etext = .;
19 PROVIDE (etext = .);
20 .rodata :
21 {
Trent Piephof62fb992009-02-18 15:22:05 -080022 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Joe Hamman8ac27322007-08-09 15:10:53 -050023 }
Joe Hamman8ac27322007-08-09 15:10:53 -050024
25 /* Read-write section, merged into data segment: */
26 . = (. + 0x00FF) & 0xFFFFFF00;
27 _erotext = .;
28 PROVIDE (erotext = .);
29 .reloc :
30 {
Joe Hamman8ac27322007-08-09 15:10:53 -050031 _GOT2_TABLE_ = .;
Peter Tyser68337fb2010-09-29 14:05:55 -050032 KEEP(*(.got2))
Joakim Tjernlund337f5f52010-12-03 17:30:37 +010033 KEEP(*(.got))
Joe Hamman8ac27322007-08-09 15:10:53 -050034 _FIXUP_TABLE_ = .;
Peter Tyser68337fb2010-09-29 14:05:55 -050035 KEEP(*(.fixup))
Joe Hamman8ac27322007-08-09 15:10:53 -050036 }
Joakim Tjernlund337f5f52010-12-03 17:30:37 +010037 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
Joe Hamman8ac27322007-08-09 15:10:53 -050038 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
39
40 .data :
41 {
Peter Tyser68337fb2010-09-29 14:05:55 -050042 *(.data*)
43 *(.sdata*)
Joe Hamman8ac27322007-08-09 15:10:53 -050044 }
45 _edata = .;
46 PROVIDE (edata = .);
47
48 . = .;
Joe Hamman8ac27322007-08-09 15:10:53 -050049
Marek Vasut55675142012-10-12 10:27:03 +000050 . = ALIGN(4);
51 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000052 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000053 }
54
Joe Hamman8ac27322007-08-09 15:10:53 -050055 . = .;
56 __start___ex_table = .;
57 __ex_table : { *(__ex_table) }
58 __stop___ex_table = .;
59
60 . = ALIGN(256);
61 __init_begin = .;
62 .text.init : { *(.text.init) }
63 .data.init : { *(.data.init) }
64 . = ALIGN(256);
65 __init_end = .;
66
67 __bss_start = .;
Wolfgang Denk64134f02008-01-12 20:31:39 +010068 .bss (NOLOAD) :
Joe Hamman8ac27322007-08-09 15:10:53 -050069 {
Peter Tyser68337fb2010-09-29 14:05:55 -050070 *(.bss*)
Wolfgang Denk4e2894b2010-11-22 08:31:41 +010071 *(.sbss*)
Joe Hamman8ac27322007-08-09 15:10:53 -050072 *(COMMON)
Selvamuthukumar9b827cf2008-10-16 22:54:03 +053073 . = ALIGN(4);
Joe Hamman8ac27322007-08-09 15:10:53 -050074 }
Simon Glass3929fb02013-03-14 06:54:53 +000075 __bss_end = . ;
Joe Hamman8ac27322007-08-09 15:10:53 -050076 PROVIDE (end = .);
77}