blob: 79fcbf4adc45ef95f81edd16fa6cc8157baf7a79 [file] [log] [blame]
wdenkdb2f721f2003-03-06 00:58:30 +00001/*
Wolfgang Denkcd0402a2010-11-20 15:07:45 +01002 * (C) Copyright 2000-2010
wdenkdb2f721f2003-03-06 00:58:30 +00003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenkdb2f721f2003-03-06 00:58:30 +00006 */
7
8OUTPUT_ARCH(powerpc)
Wolfgang Denkcd0402a2010-11-20 15:07:45 +01009
wdenkdb2f721f2003-03-06 00:58:30 +000010SECTIONS
11{
12 /* Read-only sections, merged into text segment: */
13 . = + SIZEOF_HEADERS;
wdenkdb2f721f2003-03-06 00:58:30 +000014 .text :
15 {
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010016 arch/powerpc/cpu/mpc8xx/start.o (.text*)
17 arch/powerpc/cpu/mpc8xx/traps.o (.text*)
wdenkdb2f721f2003-03-06 00:58:30 +000018
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010019 *(.text*)
wdenkdb2f721f2003-03-06 00:58:30 +000020 }
21 _etext = .;
22 PROVIDE (etext = .);
23 .rodata :
24 {
Trent Piephof62fb992009-02-18 15:22:05 -080025 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
wdenkdb2f721f2003-03-06 00:58:30 +000026 }
wdenkdb2f721f2003-03-06 00:58:30 +000027
28 /* Read-write section, merged into data segment: */
29 . = (. + 0x00FF) & 0xFFFFFF00;
30 _erotext = .;
31 PROVIDE (erotext = .);
32 .reloc :
33 {
wdenkdb2f721f2003-03-06 00:58:30 +000034 _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);
wdenkdb2f721f2003-03-06 00:58:30 +000038 _FIXUP_TABLE_ = .;
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010039 KEEP(*(.fixup))
wdenkdb2f721f2003-03-06 00:58:30 +000040 }
Joakim Tjernlund9d8fbd12011-04-20 14:22:59 +020041 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
wdenkdb2f721f2003-03-06 00:58:30 +000042 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
43
44 .data :
45 {
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010046 *(.data*)
47 *(.sdata*)
wdenkdb2f721f2003-03-06 00:58:30 +000048 }
49 _edata = .;
50 PROVIDE (edata = .);
51
wdenk8bde7f72003-06-27 21:31:46 +000052
Wolfgang Denk807d5d72005-08-31 12:28:00 +020053 . = .;
wdenk8bde7f72003-06-27 21:31:46 +000054
Marek Vasut55675142012-10-12 10:27:03 +000055 . = ALIGN(4);
56 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000057 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000058 }
59
wdenk8bde7f72003-06-27 21:31:46 +000060
Wolfgang Denk807d5d72005-08-31 12:28:00 +020061 . = .;
wdenkdb2f721f2003-03-06 00:58:30 +000062 __start___ex_table = .;
63 __ex_table : { *(__ex_table) }
64 __stop___ex_table = .;
65
66 . = ALIGN(256);
67 __init_begin = .;
68 .text.init : { *(.text.init) }
69 .data.init : { *(.data.init) }
70 . = ALIGN(256);
71 __init_end = .;
72
73 __bss_start = .;
Wolfgang Denk64134f02008-01-12 20:31:39 +010074 .bss (NOLOAD) :
wdenkdb2f721f2003-03-06 00:58:30 +000075 {
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010076 *(.bss*)
77 *(.sbss*)
wdenkdb2f721f2003-03-06 00:58:30 +000078 *(COMMON)
Selvamuthukumar9b827cf2008-10-16 22:54:03 +053079 . = ALIGN(4);
wdenkdb2f721f2003-03-06 00:58:30 +000080 }
Simon Glass3929fb02013-03-14 06:54:53 +000081 __bss_end = . ;
wdenkdb2f721f2003-03-06 00:58:30 +000082 PROVIDE (end = .);
83}