blob: 37a13fd8c2a90f600f7e0564703542a21856707a [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Grant Likely349053b2007-07-03 00:33:18 -06002/*
Wolfgang Denk4a702a12010-11-25 12:15:34 +01003 * (C) Copyright 2006-2010
Grant Likely349053b2007-07-03 00:33:18 -06004 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Grant Likely349053b2007-07-03 00:33:18 -06005 */
6
7OUTPUT_ARCH(powerpc)
8SECTIONS
9{
10 /* Read-only sections, merged into text segment: */
Grant Likely349053b2007-07-03 00:33:18 -060011 .text :
12 {
Wolfgang Denk4a702a12010-11-25 12:15:34 +010013 arch/powerpc/cpu/mpc83xx/start.o (.text*)
14 *(.text*)
Grant Likely349053b2007-07-03 00:33:18 -060015 . = ALIGN(16);
Trent Piepho4438e5e2009-02-18 15:22:05 -080016 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Grant Likely349053b2007-07-03 00:33:18 -060017 }
Grant Likely349053b2007-07-03 00:33:18 -060018
19 /* Read-write section, merged into data segment: */
20 . = (. + 0x0FFF) & 0xFFFFF000;
21 _erotext = .;
22 PROVIDE (erotext = .);
23 .reloc :
24 {
Grant Likely349053b2007-07-03 00:33:18 -060025 _GOT2_TABLE_ = .;
Wolfgang Denk4a702a12010-11-25 12:15:34 +010026 KEEP(*(.got2))
Joakim Tjernlund42126a62010-12-03 17:30:37 +010027 KEEP(*(.got))
Grant Likely349053b2007-07-03 00:33:18 -060028 _FIXUP_TABLE_ = .;
Wolfgang Denk4a702a12010-11-25 12:15:34 +010029 KEEP(*(.fixup))
Grant Likely349053b2007-07-03 00:33:18 -060030 }
Joakim Tjernlund42126a62010-12-03 17:30:37 +010031 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
Grant Likely349053b2007-07-03 00:33:18 -060032 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
33
34 .data :
35 {
Wolfgang Denk4a702a12010-11-25 12:15:34 +010036 *(.data*)
37 *(.sdata*)
Grant Likely349053b2007-07-03 00:33:18 -060038 }
39 _edata = .;
40 PROVIDE (edata = .);
41
42 . = .;
Grant Likely349053b2007-07-03 00:33:18 -060043
Marek Vasut607092a2012-10-12 10:27:03 +000044 . = ALIGN(4);
45 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000046 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000047 }
48
Grant Likely349053b2007-07-03 00:33:18 -060049
50 . = .;
51 __start___ex_table = .;
52 __ex_table : { *(__ex_table) }
53 __stop___ex_table = .;
54
55 . = ALIGN(4096);
56 __init_begin = .;
57 .text.init : { *(.text.init) }
58 .data.init : { *(.data.init) }
59 . = ALIGN(4096);
60 __init_end = .;
61
62 __bss_start = .;
Wolfgang Denk828a9782008-01-12 20:31:39 +010063 .bss (NOLOAD) :
Grant Likely349053b2007-07-03 00:33:18 -060064 {
Wolfgang Denk4a702a12010-11-25 12:15:34 +010065 *(.bss*)
66 *(.sbss*)
Grant Likely349053b2007-07-03 00:33:18 -060067 *(COMMON)
Selvamuthukumard2454ba2008-10-16 22:54:03 +053068 . = ALIGN(4);
Grant Likely349053b2007-07-03 00:33:18 -060069 }
Simon Glassed70c8f2013-03-14 06:54:53 +000070 __bss_end = . ;
Grant Likely349053b2007-07-03 00:33:18 -060071 PROVIDE (end = .);
72}
73ENTRY(_start)