blob: 1d905e94217da19fef2a99382ca5bc38b71c6076 [file] [log] [blame]
wdenkfe57bb12002-09-18 13:23:15 +00001/*
Wolfgang Denk461d3802012-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 Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenkfe57bb12002-09-18 13:23:15 +00006 */
7
8OUTPUT_ARCH(powerpc)
Wolfgang Denkcd0402a2010-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 Denkcd0402a2010-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 Denk7aabd2b2011-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
wdenk71f95112003-06-15 22:40:42 +000029 . = DEFINED(env_offset) ? env_offset : .;
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010030 common/env_embedded.o (.ppcenv*)
wdenkfe57bb12002-09-18 13:23:15 +000031
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010032 *(.text*)
wdenkfe57bb12002-09-18 13:23:15 +000033 }
34 _etext = .;
35 PROVIDE (etext = .);
36 .rodata :
37 {
Trent Piephof62fb992009-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 Denkcd0402a2010-11-20 15:07:45 +010048 KEEP(*(.got2))
Joakim Tjernlund9d8fbd12011-04-20 14:22:59 +020049 KEEP(*(.got))
50 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
wdenkfe57bb12002-09-18 13:23:15 +000051 _FIXUP_TABLE_ = .;
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010052 KEEP(*(.fixup))
wdenkfe57bb12002-09-18 13:23:15 +000053 }
Joakim Tjernlund9d8fbd12011-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 Denkcd0402a2010-11-20 15:07:45 +010059 *(.data*)
60 *(.sdata*)
wdenkfe57bb12002-09-18 13:23:15 +000061 }
62 _edata = .;
63 PROVIDE (edata = .);
64
Wolfgang Denk807d5d72005-08-31 12:28:00 +020065 . = .;
wdenk8bde7f72003-06-27 21:31:46 +000066
Marek Vasut55675142012-10-12 10:27:03 +000067 . = ALIGN(4);
68 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000069 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000070 }
71
wdenk8bde7f72003-06-27 21:31:46 +000072
Wolfgang Denk807d5d72005-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 Denk64134f02008-01-12 20:31:39 +010086 .bss (NOLOAD) :
wdenkfe57bb12002-09-18 13:23:15 +000087 {
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010088 *(.bss*)
89 *(.sbss*)
wdenkfe57bb12002-09-18 13:23:15 +000090 *(COMMON)
Selvamuthukumar9b827cf2008-10-16 22:54:03 +053091 . = ALIGN(4);
wdenkfe57bb12002-09-18 13:23:15 +000092 }
Simon Glass3929fb02013-03-14 06:54:53 +000093 __bss_end = . ;
wdenkfe57bb12002-09-18 13:23:15 +000094 PROVIDE (end = .);
95}