blob: b32f74e0022238d8581d9c9656f8a5b8f32523e2 [file] [log] [blame]
Rafal Jaworowski8993e542007-07-27 14:43:59 +02001/*
Wolfgang Denk566d49a2010-11-22 23:36:42 +01002 * (C) Copyright 2007-2010 DENX Software Engineering.
Rafal Jaworowski8993e542007-07-27 14:43:59 +02003 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Rafal Jaworowski8993e542007-07-27 14:43:59 +02005 */
6
7OUTPUT_ARCH(powerpc)
8SECTIONS
9{
Rafal Jaworowski8993e542007-07-27 14:43:59 +020010 .text :
11 {
Wolfgang Denk566d49a2010-11-22 23:36:42 +010012 arch/powerpc/cpu/mpc512x/start.o (.text*)
13 *(.text*)
Rafal Jaworowski8993e542007-07-27 14:43:59 +020014 . = ALIGN(16);
Trent Piephof62fb992009-02-18 15:22:05 -080015 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Rafal Jaworowski8993e542007-07-27 14:43:59 +020016 }
Rafal Jaworowski8993e542007-07-27 14:43:59 +020017
18 /* Read-write section, merged into data segment: */
19 . = (. + 0x0FFF) & 0xFFFFF000;
20 _erotext = .;
21 PROVIDE (erotext = .);
22 .reloc :
23 {
Rafal Jaworowski8993e542007-07-27 14:43:59 +020024 _GOT2_TABLE_ = .;
Wolfgang Denk566d49a2010-11-22 23:36:42 +010025 KEEP(*(.got2))
Joakim Tjernlund337f5f52010-12-03 17:30:37 +010026 KEEP(*(.got))
Rafal Jaworowski8993e542007-07-27 14:43:59 +020027 _FIXUP_TABLE_ = .;
Wolfgang Denk566d49a2010-11-22 23:36:42 +010028 KEEP(*(.fixup))
Rafal Jaworowski8993e542007-07-27 14:43:59 +020029 *(.fixup)
30 }
Joakim Tjernlund337f5f52010-12-03 17:30:37 +010031 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
Rafal Jaworowski8993e542007-07-27 14:43:59 +020032 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
33
34 .data :
35 {
Wolfgang Denk566d49a2010-11-22 23:36:42 +010036 *(.data*)
37 *(.sdata*)
Rafal Jaworowski8993e542007-07-27 14:43:59 +020038 }
39 _edata = .;
40 PROVIDE (edata = .);
41
42 . = .;
Rafal Jaworowski8993e542007-07-27 14:43:59 +020043
Marek Vasut55675142012-10-12 10:27:03 +000044 . = ALIGN(4);
45 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000046 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000047 }
48
Rafal Jaworowski8993e542007-07-27 14:43:59 +020049
50 . = .;
51 __start___ex_table = .;
52 __ex_table : { *(__ex_table) }
53 __stop___ex_table = .;
54
55 . = ALIGN(4096);
56 __init_begin = .;
57 .text.init : { *(.text.init) }
58 .data.init : { *(.data.init) }
59 . = ALIGN(4096);
60 __init_end = .;
61
62 __bss_start = .;
Wolfgang Denk64134f02008-01-12 20:31:39 +010063 .bss (NOLOAD) :
Rafal Jaworowski8993e542007-07-27 14:43:59 +020064 {
Wolfgang Denk566d49a2010-11-22 23:36:42 +010065 *(.bss*)
66 *(.sbss*)
Rafal Jaworowski8993e542007-07-27 14:43:59 +020067 *(COMMON)
Selvamuthukumar9b827cf2008-10-16 22:54:03 +053068 . = ALIGN(4);
Rafal Jaworowski8993e542007-07-27 14:43:59 +020069 }
Simon Glass3929fb02013-03-14 06:54:53 +000070 __bss_end = . ;
Rafal Jaworowski8993e542007-07-27 14:43:59 +020071 PROVIDE (end = .);
72}
73ENTRY(_start)