blob: d10f528da4c486787b5fef1018d9114d5245f5f5 [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
Mario Six26f9b1a2019-01-28 09:36:23 +010055 /*
56 * _end - This is end of u-boot.bin image.
57 * dtb will be appended here to make u-boot-dtb.bin
58 */
59 _end = .;
60
Grant Likely349053b2007-07-03 00:33:18 -060061 . = ALIGN(4096);
62 __init_begin = .;
63 .text.init : { *(.text.init) }
64 .data.init : { *(.data.init) }
65 . = ALIGN(4096);
66 __init_end = .;
67
68 __bss_start = .;
Wolfgang Denk828a9782008-01-12 20:31:39 +010069 .bss (NOLOAD) :
Grant Likely349053b2007-07-03 00:33:18 -060070 {
Wolfgang Denk4a702a12010-11-25 12:15:34 +010071 *(.bss*)
72 *(.sbss*)
Grant Likely349053b2007-07-03 00:33:18 -060073 *(COMMON)
Selvamuthukumard2454ba2008-10-16 22:54:03 +053074 . = ALIGN(4);
Grant Likely349053b2007-07-03 00:33:18 -060075 }
Simon Glassed70c8f2013-03-14 06:54:53 +000076 __bss_end = . ;
Grant Likely349053b2007-07-03 00:33:18 -060077 PROVIDE (end = .);
78}
79ENTRY(_start)