blob: aa80d3dbb11535f8474d993de421b350b26a5d98 [file] [log] [blame]
Grant Likelyd181c9a2007-07-03 00:32:58 -06001/*
Wolfgang Denk085ecde2010-11-23 13:20:22 +01002 * (C) Copyright 2003-2010
Grant Likelyd181c9a2007-07-03 00:32:58 -06003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Grant Likelyd181c9a2007-07-03 00:32:58 -06006 */
7
8OUTPUT_ARCH(powerpc)
Wolfgang Denk085ecde2010-11-23 13:20:22 +01009
Grant Likelyd181c9a2007-07-03 00:32:58 -060010SECTIONS
11{
12 /* Read-only sections, merged into text segment: */
Grant Likelyd181c9a2007-07-03 00:32:58 -060013 .text :
14 {
Wolfgang Denk085ecde2010-11-23 13:20:22 +010015 arch/powerpc/cpu/mpc5xxx/start.o (.text*)
16 arch/powerpc/cpu/mpc5xxx/traps.o (.text*)
17 *(.text*)
Grant Likelyd181c9a2007-07-03 00:32:58 -060018 . = ALIGN(16);
Trent Piephof62fb992009-02-18 15:22:05 -080019 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Grant Likelyd181c9a2007-07-03 00:32:58 -060020 }
Grant Likelyd181c9a2007-07-03 00:32:58 -060021
22 /* Read-write section, merged into data segment: */
23 . = (. + 0x0FFF) & 0xFFFFF000;
24 _erotext = .;
25 PROVIDE (erotext = .);
26 .reloc :
27 {
Grant Likelyd181c9a2007-07-03 00:32:58 -060028 _GOT2_TABLE_ = .;
Wolfgang Denk085ecde2010-11-23 13:20:22 +010029 KEEP(*(.got2))
Joakim Tjernlund337f5f52010-12-03 17:30:37 +010030 KEEP(*(.got))
Grant Likelyd181c9a2007-07-03 00:32:58 -060031 _FIXUP_TABLE_ = .;
Wolfgang Denk085ecde2010-11-23 13:20:22 +010032 KEEP(*(.fixup))
Grant Likelyd181c9a2007-07-03 00:32:58 -060033 }
Joakim Tjernlund337f5f52010-12-03 17:30:37 +010034 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
Grant Likelyd181c9a2007-07-03 00:32:58 -060035 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
36
37 .data :
38 {
Wolfgang Denk085ecde2010-11-23 13:20:22 +010039 *(.data*)
40 *(.sdata*)
Grant Likelyd181c9a2007-07-03 00:32:58 -060041 }
42 _edata = .;
43 PROVIDE (edata = .);
44
45 . = .;
Grant Likelyd181c9a2007-07-03 00:32:58 -060046
Marek Vasut55675142012-10-12 10:27:03 +000047 . = ALIGN(4);
48 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000049 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000050 }
51
Grant Likelyd181c9a2007-07-03 00:32:58 -060052
53 . = .;
54 __start___ex_table = .;
55 __ex_table : { *(__ex_table) }
56 __stop___ex_table = .;
57
58 . = ALIGN(4096);
59 __init_begin = .;
60 .text.init : { *(.text.init) }
61 .data.init : { *(.data.init) }
62 . = ALIGN(4096);
63 __init_end = .;
64
65 __bss_start = .;
Wolfgang Denk64134f02008-01-12 20:31:39 +010066 .bss (NOLOAD) :
Grant Likelyd181c9a2007-07-03 00:32:58 -060067 {
Grant Likelyd181c9a2007-07-03 00:32:58 -060068 *(COMMON)
Wolfgang Denk085ecde2010-11-23 13:20:22 +010069 *(.bss*)
70 *(.sbss*)
Selvamuthukumar9b827cf2008-10-16 22:54:03 +053071 . = ALIGN(4);
Grant Likelyd181c9a2007-07-03 00:32:58 -060072 }
Simon Glass3929fb02013-03-14 06:54:53 +000073 __bss_end = . ;
Grant Likelyd181c9a2007-07-03 00:32:58 -060074 PROVIDE (end = .);
75}