blob: 44dfafae2964dbbf94285e094f4c5aa46b7a794d [file] [log] [blame]
wdenkfe57bb12002-09-18 13:23:15 +00001/*
Wolfgang Denkbf294f42012-10-24 02:36:16 +00002 * (C) Copyright 2000-2012
wdenkfe57bb12002-09-18 13:23:15 +00003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenkfe57bb12002-09-18 13:23:15 +00006 */
7
8OUTPUT_ARCH(powerpc)
Wolfgang Denke71d99d2010-11-20 15:07:45 +01009
wdenkfe57bb12002-09-18 13:23:15 +000010SECTIONS
11{
12 /* Read-only sections, merged into text segment: */
13 . = + SIZEOF_HEADERS;
wdenkfe57bb12002-09-18 13:23:15 +000014 .text :
15 {
16 /* WARNING - the following is hand-optimized to fit within */
17 /* the sector layout of our flash chips! XXX FIXME XXX */
18
Wolfgang Denke71d99d2010-11-20 15:07:45 +010019 arch/powerpc/cpu/mpc8xx/start.o (.text*)
20 arch/powerpc/cpu/mpc8xx/traps.o (.text*)
Masahiro Yamada30a198b2013-11-11 14:36:00 +090021 arch/powerpc/cpu/mpc8xx/built-in.o (.text*)
22 arch/powerpc/lib/built-in.o (.text*)
23 board/tqc/tqm8xx/built-in.o (.text*)
24 disk/built-in.o (.text*)
25 drivers/net/built-in.o (.text*)
26 drivers/built-in.o (.text.pcmcia_on)
27 drivers/built-in.o (.text.pcmcia_hardware_enable)
wdenkfe57bb12002-09-18 13:23:15 +000028
wdenk7a428cc2003-06-15 22:40:42 +000029 . = DEFINED(env_offset) ? env_offset : .;
Wolfgang Denke71d99d2010-11-20 15:07:45 +010030 common/env_embedded.o (.ppcenv*)
wdenkfe57bb12002-09-18 13:23:15 +000031
Wolfgang Denke71d99d2010-11-20 15:07:45 +010032 *(.text*)
wdenkfe57bb12002-09-18 13:23:15 +000033 }
34 _etext = .;
35 PROVIDE (etext = .);
36 .rodata :
37 {
Trent Piepho4438e5e2009-02-18 15:22:05 -080038 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
wdenkfe57bb12002-09-18 13:23:15 +000039 }
wdenkfe57bb12002-09-18 13:23:15 +000040
41 /* Read-write section, merged into data segment: */
42 . = (. + 0x00FF) & 0xFFFFFF00;
43 _erotext = .;
44 PROVIDE (erotext = .);
45 .reloc :
46 {
wdenkfe57bb12002-09-18 13:23:15 +000047 _GOT2_TABLE_ = .;
Wolfgang Denke71d99d2010-11-20 15:07:45 +010048 KEEP(*(.got2))
Joakim Tjernlunda65f8c82011-04-20 14:22:59 +020049 KEEP(*(.got))
wdenkfe57bb12002-09-18 13:23:15 +000050 _FIXUP_TABLE_ = .;
Wolfgang Denke71d99d2010-11-20 15:07:45 +010051 KEEP(*(.fixup))
wdenkfe57bb12002-09-18 13:23:15 +000052 }
Joakim Tjernlunda65f8c82011-04-20 14:22:59 +020053 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
wdenkfe57bb12002-09-18 13:23:15 +000054 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
55
56 .data :
57 {
Wolfgang Denke71d99d2010-11-20 15:07:45 +010058 *(.data*)
59 *(.sdata*)
wdenkfe57bb12002-09-18 13:23:15 +000060 }
61 _edata = .;
62 PROVIDE (edata = .);
63
Wolfgang Denk5dd2c652005-08-31 12:28:00 +020064 . = .;
wdenk57b2d802003-06-27 21:31:46 +000065
Marek Vasut607092a2012-10-12 10:27:03 +000066 . = ALIGN(4);
67 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000068 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000069 }
70
wdenk57b2d802003-06-27 21:31:46 +000071
Wolfgang Denk5dd2c652005-08-31 12:28:00 +020072 . = .;
wdenkfe57bb12002-09-18 13:23:15 +000073 __start___ex_table = .;
74 __ex_table : { *(__ex_table) }
75 __stop___ex_table = .;
76
77 . = ALIGN(256);
78 __init_begin = .;
79 .text.init : { *(.text.init) }
80 .data.init : { *(.data.init) }
81 . = ALIGN(256);
82 __init_end = .;
83
84 __bss_start = .;
Wolfgang Denk828a9782008-01-12 20:31:39 +010085 .bss (NOLOAD) :
wdenkfe57bb12002-09-18 13:23:15 +000086 {
Wolfgang Denke71d99d2010-11-20 15:07:45 +010087 *(.bss*)
88 *(.sbss*)
wdenkfe57bb12002-09-18 13:23:15 +000089 *(COMMON)
Selvamuthukumard2454ba2008-10-16 22:54:03 +053090 . = ALIGN(4);
wdenkfe57bb12002-09-18 13:23:15 +000091 }
Simon Glassed70c8f2013-03-14 06:54:53 +000092 __bss_end = . ;
wdenkfe57bb12002-09-18 13:23:15 +000093 PROVIDE (end = .);
94}