blob: 50cbf85d238e16a392c7074b72f7330106342832 [file] [log] [blame]
Grant Likelyb8d6ba42007-07-03 00:33:08 -06001/*
Wolfgang Denkff8faa42010-11-24 19:19:08 +01002 * (C) Copyright 2001-2010
Grant Likelyb8d6ba42007-07-03 00:33:08 -06003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Grant Likelyb8d6ba42007-07-03 00:33:08 -06006 */
7
8OUTPUT_ARCH(powerpc)
Wolfgang Denkff8faa42010-11-24 19:19:08 +01009
Grant Likelyb8d6ba42007-07-03 00:33:08 -060010SECTIONS
11{
12 /* Read-only sections, merged into text segment: */
Grant Likelyb8d6ba42007-07-03 00:33:08 -060013 .text :
14 {
Wolfgang Denkff8faa42010-11-24 19:19:08 +010015 arch/powerpc/cpu/mpc8260/start.o (.text*)
16 *(.text*)
Grant Likelyb8d6ba42007-07-03 00:33:08 -060017 . = ALIGN(16);
Trent Piepho4438e5e2009-02-18 15:22:05 -080018 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Grant Likelyb8d6ba42007-07-03 00:33:08 -060019 }
Grant Likelyb8d6ba42007-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 Likelyb8d6ba42007-07-03 00:33:08 -060027 _GOT2_TABLE_ = .;
Wolfgang Denkff8faa42010-11-24 19:19:08 +010028 KEEP(*(.got2))
Joakim Tjernlund42126a62010-12-03 17:30:37 +010029 KEEP(*(.got))
30 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
Grant Likelyb8d6ba42007-07-03 00:33:08 -060031 _FIXUP_TABLE_ = .;
Wolfgang Denkff8faa42010-11-24 19:19:08 +010032 KEEP(*(.fixup))
Grant Likelyb8d6ba42007-07-03 00:33:08 -060033 }
Joakim Tjernlund42126a62010-12-03 17:30:37 +010034 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
Grant Likelyb8d6ba42007-07-03 00:33:08 -060035 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
36
37 .data :
38 {
Wolfgang Denkff8faa42010-11-24 19:19:08 +010039 *(.data*)
40 *(.sdata*)
Grant Likelyb8d6ba42007-07-03 00:33:08 -060041 }
42 _edata = .;
43 PROVIDE (edata = .);
44
45 . = .;
Grant Likelyb8d6ba42007-07-03 00:33:08 -060046
Marek Vasut607092a2012-10-12 10:27:03 +000047 . = ALIGN(4);
48 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000049 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000050 }
51
Grant Likelyb8d6ba42007-07-03 00:33:08 -060052
53 . = .;
54 __start___ex_table = .;
55 __ex_table : { *(__ex_table) }
56 __stop___ex_table = .;
57
58 . = ALIGN(4096);
59 __init_begin = .;
60 .text.init : { *(.text.init) }
61 .data.init : { *(.data.init) }
62 . = ALIGN(4096);
63 __init_end = .;
64
65 __bss_start = .;
Wolfgang Denk828a9782008-01-12 20:31:39 +010066 .bss (NOLOAD) :
Grant Likelyb8d6ba42007-07-03 00:33:08 -060067 {
Wolfgang Denkff8faa42010-11-24 19:19:08 +010068 *(.bss*)
69 *(.sbss*)
Grant Likelyb8d6ba42007-07-03 00:33:08 -060070 *(COMMON)
Selvamuthukumard2454ba2008-10-16 22:54:03 +053071 . = ALIGN(4);
Grant Likelyb8d6ba42007-07-03 00:33:08 -060072 }
Simon Glassed70c8f2013-03-14 06:54:53 +000073 __bss_end = . ;
Grant Likelyb8d6ba42007-07-03 00:33:08 -060074 PROVIDE (end = .);
75}