blob: 191f9eb8370203c541f397110231b3f68f21fa3d [file] [log] [blame]
wdenk682011f2003-06-03 23:54:09 +00001/*
Wolfgang Denkcd0402a2010-11-20 15:07:45 +01002 * (C) Copyright 2000-2010
wdenk682011f2003-06-03 23:54:09 +00003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenk682011f2003-06-03 23:54:09 +00006 */
7
8OUTPUT_ARCH(powerpc)
Wolfgang Denkcd0402a2010-11-20 15:07:45 +01009
wdenk682011f2003-06-03 23:54:09 +000010SECTIONS
11{
12 /* Read-only sections, merged into text segment: */
13 . = + SIZEOF_HEADERS;
wdenk682011f2003-06-03 23:54:09 +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
22 lib/libgeneric.o (.text*)
23 net/libnet.o (.text*)
24 arch/powerpc/cpu/mpc8xx/libmpc8xx.o (.text*)
25 arch/powerpc/lib/libpowerpc.o (.text*)
wdenk682011f2003-06-03 23:54:09 +000026
27 . = env_offset;
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010028 common/env_embedded.o (.text*)
wdenk682011f2003-06-03 23:54:09 +000029
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010030 *(.text*)
wdenk682011f2003-06-03 23:54:09 +000031 }
32 _etext = .;
33 PROVIDE (etext = .);
34 .rodata :
35 {
Trent Piephof62fb992009-02-18 15:22:05 -080036 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
wdenk682011f2003-06-03 23:54:09 +000037 }
wdenk682011f2003-06-03 23:54:09 +000038
39 /* Read-write section, merged into data segment: */
40 . = (. + 0x00FF) & 0xFFFFFF00;
41 _erotext = .;
42 PROVIDE (erotext = .);
43 .reloc :
44 {
wdenk682011f2003-06-03 23:54:09 +000045 _GOT2_TABLE_ = .;
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010046 KEEP(*(.got2))
Joakim Tjernlund9d8fbd12011-04-20 14:22:59 +020047 KEEP(*(.got))
48 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
wdenk682011f2003-06-03 23:54:09 +000049 _FIXUP_TABLE_ = .;
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010050 KEEP(*(.fixup))
wdenk682011f2003-06-03 23:54:09 +000051 }
Joakim Tjernlund9d8fbd12011-04-20 14:22:59 +020052 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
wdenk682011f2003-06-03 23:54:09 +000053 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
54
55 .data :
56 {
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010057 *(.data*)
58 *(.sdata*)
wdenk682011f2003-06-03 23:54:09 +000059 }
60 _edata = .;
61 PROVIDE (edata = .);
62
Wolfgang Denk807d5d72005-08-31 12:28:00 +020063 . = .;
wdenk8bde7f72003-06-27 21:31:46 +000064
Marek Vasut55675142012-10-12 10:27:03 +000065 . = ALIGN(4);
66 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000067 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000068 }
69
Wolfgang Denk807d5d72005-08-31 12:28:00 +020070 . = .;
wdenk682011f2003-06-03 23:54:09 +000071 __start___ex_table = .;
72 __ex_table : { *(__ex_table) }
73 __stop___ex_table = .;
74
75 . = ALIGN(256);
76 __init_begin = .;
77 .text.init : { *(.text.init) }
78 .data.init : { *(.data.init) }
79 . = ALIGN(256);
80 __init_end = .;
81
82 __bss_start = .;
Wolfgang Denk64134f02008-01-12 20:31:39 +010083 .bss (NOLOAD) :
wdenk682011f2003-06-03 23:54:09 +000084 {
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010085 *(.bss*)
86 *(.sbss*)
wdenk682011f2003-06-03 23:54:09 +000087 *(COMMON)
Selvamuthukumar9b827cf2008-10-16 22:54:03 +053088 . = ALIGN(4);
wdenk682011f2003-06-03 23:54:09 +000089 }
Simon Glass3929fb02013-03-14 06:54:53 +000090 __bss_end = . ;
wdenk682011f2003-06-03 23:54:09 +000091 PROVIDE (end = .);
92}