blob: f49161c67f8585b027df6cc8a7792bb2a8483520 [file] [log] [blame]
wdenk2f54faa2002-08-14 10:07:21 +00001/*
2 * (C) Copyright 2001
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenk2f54faa2002-08-14 10:07:21 +00006 */
7
8OUTPUT_ARCH(powerpc)
wdenk2f54faa2002-08-14 10:07:21 +00009/* Do we need any of these for elf?
10 __DYNAMIC = 0; */
11SECTIONS
12{
13 /* Read-only sections, merged into text segment: */
wdenk2f54faa2002-08-14 10:07:21 +000014 .text :
15 {
Wolfgang Denk79362d32010-11-23 23:48:56 +010016 arch/powerpc/cpu/mpc824x/start.o (.text*)
17 *(.text*)
wdenk2f54faa2002-08-14 10:07:21 +000018 . = ALIGN(16);
Trent Piepho4438e5e2009-02-18 15:22:05 -080019 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
wdenk2f54faa2002-08-14 10:07:21 +000020 }
wdenk2f54faa2002-08-14 10:07:21 +000021
22 /* Read-write section, merged into data segment: */
23 . = (. + 0x0FF) & 0xFFFFFF00;
24 _erotext = .;
25 PROVIDE (erotext = .);
26 .reloc :
27 {
wdenk2f54faa2002-08-14 10:07:21 +000028 _GOT2_TABLE_ = .;
Wolfgang Denk79362d32010-11-23 23:48:56 +010029 KEEP(*(.got2))
Joakim Tjernlunda65f8c82011-04-20 14:22:59 +020030 KEEP(*(.got))
31 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
wdenk2f54faa2002-08-14 10:07:21 +000032 _FIXUP_TABLE_ = .;
Wolfgang Denk79362d32010-11-23 23:48:56 +010033 KEEP(*(.fixup))
wdenk2f54faa2002-08-14 10:07:21 +000034 }
Joakim Tjernlunda65f8c82011-04-20 14:22:59 +020035 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
wdenk2f54faa2002-08-14 10:07:21 +000036 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
37
38 .data :
39 {
Wolfgang Denk79362d32010-11-23 23:48:56 +010040 *(.data*)
41 *(.sdata*)
wdenk2f54faa2002-08-14 10:07:21 +000042 }
43 _edata = .;
44 PROVIDE (edata = .);
45
Wolfgang Denk5dd2c652005-08-31 12:28:00 +020046 . = .;
wdenk57b2d802003-06-27 21:31:46 +000047
Marek Vasut607092a2012-10-12 10:27:03 +000048 . = ALIGN(4);
49 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000050 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000051 }
52
wdenk57b2d802003-06-27 21:31:46 +000053
Wolfgang Denk5dd2c652005-08-31 12:28:00 +020054 . = .;
wdenk2f54faa2002-08-14 10:07:21 +000055 __start___ex_table = .;
56 __ex_table : { *(__ex_table) }
57 __stop___ex_table = .;
58
59 . = ALIGN(4096);
60 __init_begin = .;
61 .text.init : { *(.text.init) }
62 .data.init : { *(.data.init) }
63 . = ALIGN(4096);
64 __init_end = .;
65
66 __bss_start = .;
Wolfgang Denk828a9782008-01-12 20:31:39 +010067 .bss (NOLOAD) :
wdenk2f54faa2002-08-14 10:07:21 +000068 {
Wolfgang Denk79362d32010-11-23 23:48:56 +010069 *(.bss*)
70 *(.sbss*)
wdenk2f54faa2002-08-14 10:07:21 +000071 *(COMMON)
Selvamuthukumard2454ba2008-10-16 22:54:03 +053072 . = ALIGN(4);
wdenk2f54faa2002-08-14 10:07:21 +000073 }
74
Simon Glassed70c8f2013-03-14 06:54:53 +000075 __bss_end = . ;
wdenk2f54faa2002-08-14 10:07:21 +000076 PROVIDE (end = .);
77}