blob: 6a5357124d77d68cf2880abee6cddd33067b84a6 [file] [log] [blame]
Grant Likely287ac922007-07-03 00:32:53 -06001/*
Wolfgang Denk53f378f2010-11-22 22:44:01 +01002 * (C) Copyright 2001-2010 Wolfgang Denk, DENX Software Engineering, wd@denx.de
Grant Likely287ac922007-07-03 00:32:53 -06003 * (C) Copyright 2003 Martin Winistoerfer, martinwinistoerfer@gmx.ch
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Grant Likely287ac922007-07-03 00:32:53 -06006 */
7
8OUTPUT_ARCH(powerpc)
Wolfgang Denk53f378f2010-11-22 22:44:01 +01009
Grant Likely287ac922007-07-03 00:32:53 -060010SECTIONS
11{
12 /* Read-only sections, merged into text segment: */
13 . = + SIZEOF_HEADERS;
Grant Likely287ac922007-07-03 00:32:53 -060014 .text :
15 {
Wolfgang Denk53f378f2010-11-22 22:44:01 +010016 arch/powerpc/cpu/mpc5xx/start.o (.text*)
Grant Likely287ac922007-07-03 00:32:53 -060017
Wolfgang Denk53f378f2010-11-22 22:44:01 +010018 *(.text*)
Grant Likely287ac922007-07-03 00:32:53 -060019 }
20 _etext = .;
21 PROVIDE (etext = .);
22 .rodata :
23 {
Trent Piephof62fb992009-02-18 15:22:05 -080024 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Grant Likely287ac922007-07-03 00:32:53 -060025 }
Grant Likely287ac922007-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 Likely287ac922007-07-03 00:32:53 -060033 _GOT2_TABLE_ = .;
Wolfgang Denk53f378f2010-11-22 22:44:01 +010034 KEEP(*(.got2))
Joakim Tjernlund337f5f52010-12-03 17:30:37 +010035 KEEP(*(.got))
Grant Likely287ac922007-07-03 00:32:53 -060036 _FIXUP_TABLE_ = .;
Wolfgang Denk53f378f2010-11-22 22:44:01 +010037 KEEP(*(.fixup))
Grant Likely287ac922007-07-03 00:32:53 -060038 }
Joakim Tjernlund337f5f52010-12-03 17:30:37 +010039 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
Grant Likely287ac922007-07-03 00:32:53 -060040 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
41
42 .data :
43 {
Wolfgang Denk53f378f2010-11-22 22:44:01 +010044 *(.data*)
45 *(.sdata*)
Grant Likely287ac922007-07-03 00:32:53 -060046 }
47 _edata = .;
48 PROVIDE (edata = .);
49
50 . = .;
Grant Likely287ac922007-07-03 00:32:53 -060051
Marek Vasut55675142012-10-12 10:27:03 +000052 . = ALIGN(4);
53 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000054 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000055 }
56
Grant Likely287ac922007-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 Denk64134f02008-01-12 20:31:39 +010071 .bss (NOLOAD) :
Grant Likely287ac922007-07-03 00:32:53 -060072 {
Wolfgang Denk53f378f2010-11-22 22:44:01 +010073 *(.bss*)
74 *(.sbss*)
Grant Likely287ac922007-07-03 00:32:53 -060075 *(COMMON)
Selvamuthukumar9b827cf2008-10-16 22:54:03 +053076 . = ALIGN(4);
Grant Likely287ac922007-07-03 00:32:53 -060077 }
78
Simon Glass3929fb02013-03-14 06:54:53 +000079 __bss_end = . ;
Grant Likely287ac922007-07-03 00:32:53 -060080 PROVIDE (end = .);
Wolfgang Denk53f378f2010-11-22 22:44:01 +010081 . = env_start;
82 .ppcenv :
83 {
84 common/env_embedded.o (.ppcenv)
85 }
Grant Likely287ac922007-07-03 00:32:53 -060086}