blob: 1d905e94217da19fef2a99382ca5bc38b71c6076 [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*)
21 arch/powerpc/cpu/mpc8xx/libmpc8xx.o (.text*)
22 arch/powerpc/lib/libpowerpc.o (.text*)
23 board/tqc/tqm8xx/libtqm8xx.o (.text*)
24 disk/libdisk.o (.text*)
25 drivers/net/libnet.o (.text*)
Wolfgang Denk2cc43172011-10-05 09:55:01 +000026 drivers/pcmcia/libpcmcia.o (.text.pcmcia_on)
27 drivers/pcmcia/libpcmcia.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))
50 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
wdenkfe57bb12002-09-18 13:23:15 +000051 _FIXUP_TABLE_ = .;
Wolfgang Denke71d99d2010-11-20 15:07:45 +010052 KEEP(*(.fixup))
wdenkfe57bb12002-09-18 13:23:15 +000053 }
Joakim Tjernlunda65f8c82011-04-20 14:22:59 +020054 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
wdenkfe57bb12002-09-18 13:23:15 +000055 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
56
57 .data :
58 {
Wolfgang Denke71d99d2010-11-20 15:07:45 +010059 *(.data*)
60 *(.sdata*)
wdenkfe57bb12002-09-18 13:23:15 +000061 }
62 _edata = .;
63 PROVIDE (edata = .);
64
Wolfgang Denk5dd2c652005-08-31 12:28:00 +020065 . = .;
wdenk57b2d802003-06-27 21:31:46 +000066
Marek Vasut607092a2012-10-12 10:27:03 +000067 . = ALIGN(4);
68 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000069 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000070 }
71
wdenk57b2d802003-06-27 21:31:46 +000072
Wolfgang Denk5dd2c652005-08-31 12:28:00 +020073 . = .;
wdenkfe57bb12002-09-18 13:23:15 +000074 __start___ex_table = .;
75 __ex_table : { *(__ex_table) }
76 __stop___ex_table = .;
77
78 . = ALIGN(256);
79 __init_begin = .;
80 .text.init : { *(.text.init) }
81 .data.init : { *(.data.init) }
82 . = ALIGN(256);
83 __init_end = .;
84
85 __bss_start = .;
Wolfgang Denk828a9782008-01-12 20:31:39 +010086 .bss (NOLOAD) :
wdenkfe57bb12002-09-18 13:23:15 +000087 {
Wolfgang Denke71d99d2010-11-20 15:07:45 +010088 *(.bss*)
89 *(.sbss*)
wdenkfe57bb12002-09-18 13:23:15 +000090 *(COMMON)
Selvamuthukumard2454ba2008-10-16 22:54:03 +053091 . = ALIGN(4);
wdenkfe57bb12002-09-18 13:23:15 +000092 }
Simon Glassed70c8f2013-03-14 06:54:53 +000093 __bss_end = . ;
wdenkfe57bb12002-09-18 13:23:15 +000094 PROVIDE (end = .);
95}