blob: 94f07c6b7dd201663cad43d018c1fba6538ed1a3 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Joe Hammane0bdea32007-08-09 15:10:53 -05002/*
3 * Copyright 2006, 2007 Freescale Semiconductor, Inc.
Joe Hammane0bdea32007-08-09 15:10:53 -05004 */
5
6OUTPUT_ARCH(powerpc)
7
8SECTIONS
9{
10
11 /* Read-only sections, merged into text segment: */
Joe Hammane0bdea32007-08-09 15:10:53 -050012 .text :
13 {
Wolfgang Denk1f759f12010-11-22 08:31:41 +010014 arch/powerpc/cpu/mpc86xx/start.o (.text*)
15 arch/powerpc/cpu/mpc86xx/traps.o (.text*)
Peter Tysereb168742010-09-29 14:05:55 -050016 *(.text*)
Joe Hammane0bdea32007-08-09 15:10:53 -050017 }
18 _etext = .;
19 PROVIDE (etext = .);
20 .rodata :
21 {
Trent Piepho4438e5e2009-02-18 15:22:05 -080022 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Joe Hammane0bdea32007-08-09 15:10:53 -050023 }
Joe Hammane0bdea32007-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 Hammane0bdea32007-08-09 15:10:53 -050031 _GOT2_TABLE_ = .;
Peter Tysereb168742010-09-29 14:05:55 -050032 KEEP(*(.got2))
Joakim Tjernlund42126a62010-12-03 17:30:37 +010033 KEEP(*(.got))
Joe Hammane0bdea32007-08-09 15:10:53 -050034 _FIXUP_TABLE_ = .;
Peter Tysereb168742010-09-29 14:05:55 -050035 KEEP(*(.fixup))
Joe Hammane0bdea32007-08-09 15:10:53 -050036 }
Joakim Tjernlund42126a62010-12-03 17:30:37 +010037 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
Joe Hammane0bdea32007-08-09 15:10:53 -050038 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
39
40 .data :
41 {
Peter Tysereb168742010-09-29 14:05:55 -050042 *(.data*)
43 *(.sdata*)
Joe Hammane0bdea32007-08-09 15:10:53 -050044 }
45 _edata = .;
46 PROVIDE (edata = .);
47
48 . = .;
Joe Hammane0bdea32007-08-09 15:10:53 -050049
Marek Vasut607092a2012-10-12 10:27:03 +000050 . = ALIGN(4);
51 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000052 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000053 }
54
Joe Hammane0bdea32007-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 Denk828a9782008-01-12 20:31:39 +010068 .bss (NOLOAD) :
Joe Hammane0bdea32007-08-09 15:10:53 -050069 {
Peter Tysereb168742010-09-29 14:05:55 -050070 *(.bss*)
Wolfgang Denk1f759f12010-11-22 08:31:41 +010071 *(.sbss*)
Joe Hammane0bdea32007-08-09 15:10:53 -050072 *(COMMON)
Selvamuthukumard2454ba2008-10-16 22:54:03 +053073 . = ALIGN(4);
Joe Hammane0bdea32007-08-09 15:10:53 -050074 }
Simon Glassed70c8f2013-03-14 06:54:53 +000075 __bss_end = . ;
Joe Hammane0bdea32007-08-09 15:10:53 -050076 PROVIDE (end = .);
77}