blob: dbd8bbe23c187e59d130b4780cf856c6d3cf9acb [file] [log] [blame]
Grant Likely416a0b62007-07-03 00:33:18 -06001/*
Wolfgang Denkff2311a2010-11-25 12:15:34 +01002 * (C) Copyright 2006-2010
Grant Likely416a0b62007-07-03 00:33:18 -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 Likely416a0b62007-07-03 00:33:18 -06006 */
7
8OUTPUT_ARCH(powerpc)
9SECTIONS
10{
11 /* Read-only sections, merged into text segment: */
Grant Likely416a0b62007-07-03 00:33:18 -060012 .text :
13 {
Wolfgang Denkff2311a2010-11-25 12:15:34 +010014 arch/powerpc/cpu/mpc83xx/start.o (.text*)
15 *(.text*)
Grant Likely416a0b62007-07-03 00:33:18 -060016 . = ALIGN(16);
Trent Piephof62fb992009-02-18 15:22:05 -080017 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Grant Likely416a0b62007-07-03 00:33:18 -060018 }
Grant Likely416a0b62007-07-03 00:33:18 -060019
20 /* Read-write section, merged into data segment: */
21 . = (. + 0x0FFF) & 0xFFFFF000;
22 _erotext = .;
23 PROVIDE (erotext = .);
24 .reloc :
25 {
Grant Likely416a0b62007-07-03 00:33:18 -060026 _GOT2_TABLE_ = .;
Wolfgang Denkff2311a2010-11-25 12:15:34 +010027 KEEP(*(.got2))
Joakim Tjernlund337f5f52010-12-03 17:30:37 +010028 KEEP(*(.got))
Grant Likely416a0b62007-07-03 00:33:18 -060029 _FIXUP_TABLE_ = .;
Wolfgang Denkff2311a2010-11-25 12:15:34 +010030 KEEP(*(.fixup))
Grant Likely416a0b62007-07-03 00:33:18 -060031 }
Joakim Tjernlund337f5f52010-12-03 17:30:37 +010032 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
Grant Likely416a0b62007-07-03 00:33:18 -060033 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
34
35 .data :
36 {
Wolfgang Denkff2311a2010-11-25 12:15:34 +010037 *(.data*)
38 *(.sdata*)
Grant Likely416a0b62007-07-03 00:33:18 -060039 }
40 _edata = .;
41 PROVIDE (edata = .);
42
43 . = .;
Grant Likely416a0b62007-07-03 00:33:18 -060044
Marek Vasut55675142012-10-12 10:27:03 +000045 . = ALIGN(4);
46 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000047 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000048 }
49
Grant Likely416a0b62007-07-03 00:33:18 -060050
51 . = .;
52 __start___ex_table = .;
53 __ex_table : { *(__ex_table) }
54 __stop___ex_table = .;
55
56 . = ALIGN(4096);
57 __init_begin = .;
58 .text.init : { *(.text.init) }
59 .data.init : { *(.data.init) }
60 . = ALIGN(4096);
61 __init_end = .;
62
63 __bss_start = .;
Wolfgang Denk64134f02008-01-12 20:31:39 +010064 .bss (NOLOAD) :
Grant Likely416a0b62007-07-03 00:33:18 -060065 {
Wolfgang Denkff2311a2010-11-25 12:15:34 +010066 *(.bss*)
67 *(.sbss*)
Grant Likely416a0b62007-07-03 00:33:18 -060068 *(COMMON)
Selvamuthukumar9b827cf2008-10-16 22:54:03 +053069 . = ALIGN(4);
Grant Likely416a0b62007-07-03 00:33:18 -060070 }
Simon Glass3929fb02013-03-14 06:54:53 +000071 __bss_end = . ;
Grant Likely416a0b62007-07-03 00:33:18 -060072 PROVIDE (end = .);
73}
74ENTRY(_start)