blob: 3d4fc8a2f5a6b27c7c6e6a595130931840bfad0e [file] [log] [blame]
wdenkb4e1a4b2002-01-13 00:10:35 +00001/*
Wolfgang Denke71d99d2010-11-20 15:07:45 +01002 * (C) Copyright 2000-2010
wdenkb4e1a4b2002-01-13 00:10:35 +00003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenkb4e1a4b2002-01-13 00:10:35 +00006 */
7
8OUTPUT_ARCH(powerpc)
Wolfgang Denke71d99d2010-11-20 15:07:45 +01009
wdenkb4e1a4b2002-01-13 00:10:35 +000010SECTIONS
11{
12 /* Read-only sections, merged into text segment: */
13 . = + SIZEOF_HEADERS;
wdenkb4e1a4b2002-01-13 00:10:35 +000014 .text :
15 {
Wolfgang Denke71d99d2010-11-20 15:07:45 +010016 arch/powerpc/cpu/mpc8xx/start.o (.text*)
17 arch/powerpc/cpu/mpc8xx/traps.o (.text*)
18
19 *(.text*)
wdenkb4e1a4b2002-01-13 00:10:35 +000020 }
21 _etext = .;
22 PROVIDE (etext = .);
23 .rodata :
24 {
Trent Piepho4438e5e2009-02-18 15:22:05 -080025 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
wdenkb4e1a4b2002-01-13 00:10:35 +000026 }
wdenkb4e1a4b2002-01-13 00:10:35 +000027
28 /* Read-write section, merged into data segment: */
29 . = (. + 0x0FF) & 0xFFFFFF00;
30 _erotext = .;
31 PROVIDE (erotext = .);
32 .reloc :
33 {
wdenkb4e1a4b2002-01-13 00:10:35 +000034 _GOT2_TABLE_ = .;
Wolfgang Denke71d99d2010-11-20 15:07:45 +010035 KEEP(*(.got2))
Joakim Tjernlunda65f8c82011-04-20 14:22:59 +020036 KEEP(*(.got))
37 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
wdenkb4e1a4b2002-01-13 00:10:35 +000038 _FIXUP_TABLE_ = .;
Wolfgang Denke71d99d2010-11-20 15:07:45 +010039 KEEP(*(.fixup))
wdenkb4e1a4b2002-01-13 00:10:35 +000040 }
Joakim Tjernlunda65f8c82011-04-20 14:22:59 +020041 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
wdenkb4e1a4b2002-01-13 00:10:35 +000042 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
43
44 .data :
45 {
Wolfgang Denke71d99d2010-11-20 15:07:45 +010046 *(.data*)
47 *(.sdata*)
wdenkb4e1a4b2002-01-13 00:10:35 +000048 }
49 _edata = .;
50 PROVIDE (edata = .);
51
Wolfgang Denk5dd2c652005-08-31 12:28:00 +020052 . = .;
wdenk57b2d802003-06-27 21:31:46 +000053
Marek Vasut607092a2012-10-12 10:27:03 +000054 . = ALIGN(4);
55 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000056 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000057 }
58
wdenk57b2d802003-06-27 21:31:46 +000059
Wolfgang Denk5dd2c652005-08-31 12:28:00 +020060 . = .;
wdenkb4e1a4b2002-01-13 00:10:35 +000061 __start___ex_table = .;
62 __ex_table : { *(__ex_table) }
63 __stop___ex_table = .;
64
65 . = ALIGN(256);
66 __init_begin = .;
67 .text.init : { *(.text.init) }
68 .data.init : { *(.data.init) }
69 . = ALIGN(256);
70 __init_end = .;
71
72 __bss_start = .;
Wolfgang Denk828a9782008-01-12 20:31:39 +010073 .bss (NOLOAD) :
wdenkb4e1a4b2002-01-13 00:10:35 +000074 {
Wolfgang Denke71d99d2010-11-20 15:07:45 +010075 *(.bss*)
76 *(.sbss*)
wdenkb4e1a4b2002-01-13 00:10:35 +000077 *(COMMON)
Selvamuthukumard2454ba2008-10-16 22:54:03 +053078 . = ALIGN(4);
wdenkb4e1a4b2002-01-13 00:10:35 +000079 }
Simon Glassed70c8f2013-03-14 06:54:53 +000080 __bss_end = . ;
wdenkb4e1a4b2002-01-13 00:10:35 +000081 PROVIDE (end = .);
82}