blob: 0dff5a402312929bc15b7f86ddcc8a9a91c8d368 [file] [log] [blame]
Wolfgang Denk6bdf4302005-08-15 15:55:00 +02001/*
Wolfgang Denkcd0402a2010-11-20 15:07:45 +01002 * (C) Copyright 2000-2010
Wolfgang Denk6bdf4302005-08-15 15:55:00 +02003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Wolfgang Denk6bdf4302005-08-15 15:55:00 +02006 */
7
8OUTPUT_ARCH(powerpc)
Wolfgang Denkcd0402a2010-11-20 15:07:45 +01009
Wolfgang Denk6bdf4302005-08-15 15:55:00 +020010SECTIONS
11{
12 /* Read-only sections, merged into text segment: */
13 . = + SIZEOF_HEADERS;
Wolfgang Denk53677ef2008-05-20 16:00:29 +020014 .text :
Wolfgang Denk6bdf4302005-08-15 15:55:00 +020015 {
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010016 arch/powerpc/cpu/mpc8xx/start.o (.text*)
17 arch/powerpc/cpu/mpc8xx/traps.o (.text*)
Wolfgang Denk6bdf4302005-08-15 15:55:00 +020018
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010019 *(.text*)
Wolfgang Denk6bdf4302005-08-15 15:55:00 +020020 }
21 _etext = .;
22 PROVIDE (etext = .);
23 .rodata :
24 {
Trent Piephof62fb992009-02-18 15:22:05 -080025 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Wolfgang Denk6bdf4302005-08-15 15:55:00 +020026 }
Wolfgang Denk6bdf4302005-08-15 15:55:00 +020027
28 /* Read-write section, merged into data segment: */
29 . = (. + 0x00FF) & 0xFFFFFF00;
30 _erotext = .;
31 PROVIDE (erotext = .);
32 .reloc :
33 {
Wolfgang Denk6bdf4302005-08-15 15:55:00 +020034 _GOT2_TABLE_ = .;
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010035 KEEP(*(.got2))
Joakim Tjernlund9d8fbd12011-04-20 14:22:59 +020036 KEEP(*(.got))
37 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
Wolfgang Denk6bdf4302005-08-15 15:55:00 +020038 _FIXUP_TABLE_ = .;
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010039 KEEP(*(.fixup))
Wolfgang Denk6bdf4302005-08-15 15:55:00 +020040 }
Joakim Tjernlund9d8fbd12011-04-20 14:22:59 +020041 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
Wolfgang Denk6bdf4302005-08-15 15:55:00 +020042 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
43
44 .data :
45 {
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010046 *(.data*)
47 *(.sdata*)
Wolfgang Denk6bdf4302005-08-15 15:55:00 +020048 }
49 _edata = .;
50 PROVIDE (edata = .);
51
Wolfgang Denk807d5d72005-08-31 12:28:00 +020052 . = .;
Wolfgang Denk6bdf4302005-08-15 15:55:00 +020053
Marek Vasut55675142012-10-12 10:27:03 +000054 . = ALIGN(4);
55 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000056 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000057 }
58
Wolfgang Denk6bdf4302005-08-15 15:55:00 +020059
Wolfgang Denk807d5d72005-08-31 12:28:00 +020060 . = .;
Wolfgang Denk6bdf4302005-08-15 15:55:00 +020061 __start___ex_table = .;
62 __ex_table : { *(__ex_table) }
63 __stop___ex_table = .;
64
65 . = ALIGN(256);
66 __init_begin = .;
67 .text.init : { *(.text.init) }
68 .data.init : { *(.data.init) }
69 . = ALIGN(256);
70 __init_end = .;
71
72 __bss_start = .;
Wolfgang Denk64134f02008-01-12 20:31:39 +010073 .bss (NOLOAD) :
Wolfgang Denk6bdf4302005-08-15 15:55:00 +020074 {
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010075 *(.bss*)
76 *(.sbss*)
Wolfgang Denk6bdf4302005-08-15 15:55:00 +020077 *(COMMON)
Selvamuthukumar9b827cf2008-10-16 22:54:03 +053078 . = ALIGN(4);
Wolfgang Denk6bdf4302005-08-15 15:55:00 +020079 }
Simon Glass3929fb02013-03-14 06:54:53 +000080 __bss_end = . ;
Wolfgang Denk6bdf4302005-08-15 15:55:00 +020081 PROVIDE (end = .);
82}