blob: dbd8bbe23c187e59d130b4780cf856c6d3cf9acb [file] [log] [blame]
Grant Likely349053b2007-07-03 00:33:18 -06001/*
Wolfgang Denk4a702a12010-11-25 12:15:34 +01002 * (C) Copyright 2006-2010
Grant Likely349053b2007-07-03 00:33:18 -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 Likely349053b2007-07-03 00:33:18 -06006 */
7
8OUTPUT_ARCH(powerpc)
9SECTIONS
10{
11 /* Read-only sections, merged into text segment: */
Grant Likely349053b2007-07-03 00:33:18 -060012 .text :
13 {
Wolfgang Denk4a702a12010-11-25 12:15:34 +010014 arch/powerpc/cpu/mpc83xx/start.o (.text*)
15 *(.text*)
Grant Likely349053b2007-07-03 00:33:18 -060016 . = ALIGN(16);
Trent Piepho4438e5e2009-02-18 15:22:05 -080017 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Grant Likely349053b2007-07-03 00:33:18 -060018 }
Grant Likely349053b2007-07-03 00:33:18 -060019
20 /* Read-write section, merged into data segment: */
21 . = (. + 0x0FFF) & 0xFFFFF000;
22 _erotext = .;
23 PROVIDE (erotext = .);
24 .reloc :
25 {
Grant Likely349053b2007-07-03 00:33:18 -060026 _GOT2_TABLE_ = .;
Wolfgang Denk4a702a12010-11-25 12:15:34 +010027 KEEP(*(.got2))
Joakim Tjernlund42126a62010-12-03 17:30:37 +010028 KEEP(*(.got))
Grant Likely349053b2007-07-03 00:33:18 -060029 _FIXUP_TABLE_ = .;
Wolfgang Denk4a702a12010-11-25 12:15:34 +010030 KEEP(*(.fixup))
Grant Likely349053b2007-07-03 00:33:18 -060031 }
Joakim Tjernlund42126a62010-12-03 17:30:37 +010032 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
Grant Likely349053b2007-07-03 00:33:18 -060033 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
34
35 .data :
36 {
Wolfgang Denk4a702a12010-11-25 12:15:34 +010037 *(.data*)
38 *(.sdata*)
Grant Likely349053b2007-07-03 00:33:18 -060039 }
40 _edata = .;
41 PROVIDE (edata = .);
42
43 . = .;
Grant Likely349053b2007-07-03 00:33:18 -060044
Marek Vasut607092a2012-10-12 10:27:03 +000045 . = ALIGN(4);
46 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000047 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000048 }
49
Grant Likely349053b2007-07-03 00:33:18 -060050
51 . = .;
52 __start___ex_table = .;
53 __ex_table : { *(__ex_table) }
54 __stop___ex_table = .;
55
56 . = ALIGN(4096);
57 __init_begin = .;
58 .text.init : { *(.text.init) }
59 .data.init : { *(.data.init) }
60 . = ALIGN(4096);
61 __init_end = .;
62
63 __bss_start = .;
Wolfgang Denk828a9782008-01-12 20:31:39 +010064 .bss (NOLOAD) :
Grant Likely349053b2007-07-03 00:33:18 -060065 {
Wolfgang Denk4a702a12010-11-25 12:15:34 +010066 *(.bss*)
67 *(.sbss*)
Grant Likely349053b2007-07-03 00:33:18 -060068 *(COMMON)
Selvamuthukumard2454ba2008-10-16 22:54:03 +053069 . = ALIGN(4);
Grant Likely349053b2007-07-03 00:33:18 -060070 }
Simon Glassed70c8f2013-03-14 06:54:53 +000071 __bss_end = . ;
Grant Likely349053b2007-07-03 00:33:18 -060072 PROVIDE (end = .);
73}
74ENTRY(_start)