blob: 469fc293eb989689db9d5d74f0f53ec95408c898 [file] [log] [blame]
Grant Likely737f9eb2007-07-03 00:33:08 -06001/*
Wolfgang Denkba273f02010-11-24 19:19:08 +01002 * (C) Copyright 2001-2010
Grant Likely737f9eb2007-07-03 00:33:08 -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 Likely737f9eb2007-07-03 00:33:08 -06006 */
7
8OUTPUT_ARCH(powerpc)
Wolfgang Denkba273f02010-11-24 19:19:08 +01009
Grant Likely737f9eb2007-07-03 00:33:08 -060010SECTIONS
11{
12 /* Read-only sections, merged into text segment: */
Grant Likely737f9eb2007-07-03 00:33:08 -060013 .text :
14 {
Wolfgang Denkba273f02010-11-24 19:19:08 +010015 arch/powerpc/cpu/mpc8260/start.o (.text*)
16 *(.text*)
Grant Likely737f9eb2007-07-03 00:33:08 -060017 . = ALIGN(16);
Trent Piephof62fb992009-02-18 15:22:05 -080018 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Grant Likely737f9eb2007-07-03 00:33:08 -060019 }
Grant Likely737f9eb2007-07-03 00:33:08 -060020
21 /* Read-write section, merged into data segment: */
22 . = (. + 0x0FFF) & 0xFFFFF000;
23 _erotext = .;
24 PROVIDE (erotext = .);
25 .reloc :
26 {
Grant Likely737f9eb2007-07-03 00:33:08 -060027 _GOT2_TABLE_ = .;
Wolfgang Denkba273f02010-11-24 19:19:08 +010028 KEEP(*(.got2))
Joakim Tjernlund337f5f52010-12-03 17:30:37 +010029 KEEP(*(.got))
Grant Likely737f9eb2007-07-03 00:33:08 -060030 _FIXUP_TABLE_ = .;
Wolfgang Denkba273f02010-11-24 19:19:08 +010031 KEEP(*(.fixup))
Grant Likely737f9eb2007-07-03 00:33:08 -060032 }
Joakim Tjernlund337f5f52010-12-03 17:30:37 +010033 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
Grant Likely737f9eb2007-07-03 00:33:08 -060034 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
35
36 .data :
37 {
Wolfgang Denkba273f02010-11-24 19:19:08 +010038 *(.data*)
39 *(.sdata*)
Grant Likely737f9eb2007-07-03 00:33:08 -060040 }
41 _edata = .;
42 PROVIDE (edata = .);
43
44 . = .;
Grant Likely737f9eb2007-07-03 00:33:08 -060045
Marek Vasut55675142012-10-12 10:27:03 +000046 . = ALIGN(4);
47 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000048 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000049 }
50
Grant Likely737f9eb2007-07-03 00:33:08 -060051
52 . = .;
53 __start___ex_table = .;
54 __ex_table : { *(__ex_table) }
55 __stop___ex_table = .;
56
57 . = ALIGN(4096);
58 __init_begin = .;
59 .text.init : { *(.text.init) }
60 .data.init : { *(.data.init) }
61 . = ALIGN(4096);
62 __init_end = .;
63
64 __bss_start = .;
Wolfgang Denk64134f02008-01-12 20:31:39 +010065 .bss (NOLOAD) :
Grant Likely737f9eb2007-07-03 00:33:08 -060066 {
Wolfgang Denkba273f02010-11-24 19:19:08 +010067 *(.bss*)
68 *(.sbss*)
Grant Likely737f9eb2007-07-03 00:33:08 -060069 *(COMMON)
Selvamuthukumar9b827cf2008-10-16 22:54:03 +053070 . = ALIGN(4);
Grant Likely737f9eb2007-07-03 00:33:08 -060071 }
Simon Glass3929fb02013-03-14 06:54:53 +000072 __bss_end = . ;
Grant Likely737f9eb2007-07-03 00:33:08 -060073 PROVIDE (end = .);
74}