blob: 6a5357124d77d68cf2880abee6cddd33067b84a6 [file] [log] [blame]
Grant Likelyd68c71c2007-07-03 00:32:53 -06001/*
Wolfgang Denk61c7a6e2010-11-22 22:44:01 +01002 * (C) Copyright 2001-2010 Wolfgang Denk, DENX Software Engineering, wd@denx.de
Grant Likelyd68c71c2007-07-03 00:32:53 -06003 * (C) Copyright 2003 Martin Winistoerfer, martinwinistoerfer@gmx.ch
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Grant Likelyd68c71c2007-07-03 00:32:53 -06006 */
7
8OUTPUT_ARCH(powerpc)
Wolfgang Denk61c7a6e2010-11-22 22:44:01 +01009
Grant Likelyd68c71c2007-07-03 00:32:53 -060010SECTIONS
11{
12 /* Read-only sections, merged into text segment: */
13 . = + SIZEOF_HEADERS;
Grant Likelyd68c71c2007-07-03 00:32:53 -060014 .text :
15 {
Wolfgang Denk61c7a6e2010-11-22 22:44:01 +010016 arch/powerpc/cpu/mpc5xx/start.o (.text*)
Grant Likelyd68c71c2007-07-03 00:32:53 -060017
Wolfgang Denk61c7a6e2010-11-22 22:44:01 +010018 *(.text*)
Grant Likelyd68c71c2007-07-03 00:32:53 -060019 }
20 _etext = .;
21 PROVIDE (etext = .);
22 .rodata :
23 {
Trent Piepho4438e5e2009-02-18 15:22:05 -080024 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Grant Likelyd68c71c2007-07-03 00:32:53 -060025 }
Grant Likelyd68c71c2007-07-03 00:32:53 -060026
27 /* Read-write section, merged into data segment: */
28 . = (. + 0x00FF) & 0xFFFFFF00;
29 _erotext = .;
30 PROVIDE (erotext = .);
31 .reloc :
32 {
Grant Likelyd68c71c2007-07-03 00:32:53 -060033 _GOT2_TABLE_ = .;
Wolfgang Denk61c7a6e2010-11-22 22:44:01 +010034 KEEP(*(.got2))
Joakim Tjernlund42126a62010-12-03 17:30:37 +010035 KEEP(*(.got))
Grant Likelyd68c71c2007-07-03 00:32:53 -060036 _FIXUP_TABLE_ = .;
Wolfgang Denk61c7a6e2010-11-22 22:44:01 +010037 KEEP(*(.fixup))
Grant Likelyd68c71c2007-07-03 00:32:53 -060038 }
Joakim Tjernlund42126a62010-12-03 17:30:37 +010039 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
Grant Likelyd68c71c2007-07-03 00:32:53 -060040 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
41
42 .data :
43 {
Wolfgang Denk61c7a6e2010-11-22 22:44:01 +010044 *(.data*)
45 *(.sdata*)
Grant Likelyd68c71c2007-07-03 00:32:53 -060046 }
47 _edata = .;
48 PROVIDE (edata = .);
49
50 . = .;
Grant Likelyd68c71c2007-07-03 00:32:53 -060051
Marek Vasut607092a2012-10-12 10:27:03 +000052 . = ALIGN(4);
53 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000054 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000055 }
56
Grant Likelyd68c71c2007-07-03 00:32:53 -060057
58 . = .;
59 __start___ex_table = .;
60 __ex_table : { *(__ex_table) }
61 __stop___ex_table = .;
62
63 . = ALIGN(256);
64 __init_begin = .;
65 .text.init : { *(.text.init) }
66 .data.init : { *(.data.init) }
67 . = ALIGN(256);
68 __init_end = .;
69
70 __bss_start = .;
Wolfgang Denk828a9782008-01-12 20:31:39 +010071 .bss (NOLOAD) :
Grant Likelyd68c71c2007-07-03 00:32:53 -060072 {
Wolfgang Denk61c7a6e2010-11-22 22:44:01 +010073 *(.bss*)
74 *(.sbss*)
Grant Likelyd68c71c2007-07-03 00:32:53 -060075 *(COMMON)
Selvamuthukumard2454ba2008-10-16 22:54:03 +053076 . = ALIGN(4);
Grant Likelyd68c71c2007-07-03 00:32:53 -060077 }
78
Simon Glassed70c8f2013-03-14 06:54:53 +000079 __bss_end = . ;
Grant Likelyd68c71c2007-07-03 00:32:53 -060080 PROVIDE (end = .);
Wolfgang Denk61c7a6e2010-11-22 22:44:01 +010081 . = env_start;
82 .ppcenv :
83 {
84 common/env_embedded.o (.ppcenv)
85 }
Grant Likelyd68c71c2007-07-03 00:32:53 -060086}