blob: 7676cf43b17fc61ce9b5b6509e3e994e51a27365 [file] [log] [blame]
wdenk4e112c12003-06-03 23:54:09 +00001/*
Wolfgang Denke71d99d2010-11-20 15:07:45 +01002 * (C) Copyright 2000-2010
wdenk4e112c12003-06-03 23:54:09 +00003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenk4e112c12003-06-03 23:54:09 +00006 */
7
8OUTPUT_ARCH(powerpc)
Wolfgang Denke71d99d2010-11-20 15:07:45 +01009
wdenk4e112c12003-06-03 23:54:09 +000010SECTIONS
11{
12 /* Read-only sections, merged into text segment: */
13 . = + SIZEOF_HEADERS;
wdenk4e112c12003-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 Denke71d99d2010-11-20 15:07:45 +010019 arch/powerpc/cpu/mpc8xx/start.o (.text*)
20 arch/powerpc/cpu/mpc8xx/traps.o (.text*)
21
Masahiro Yamada30a198b2013-11-11 14:36:00 +090022 lib/built-in.o (.text*)
23 net/built-in.o (.text*)
24 arch/powerpc/cpu/mpc8xx/built-in.o (.text*)
25 arch/powerpc/lib/built-in.o (.text*)
wdenk4e112c12003-06-03 23:54:09 +000026
27 . = env_offset;
Wolfgang Denke71d99d2010-11-20 15:07:45 +010028 common/env_embedded.o (.text*)
wdenk4e112c12003-06-03 23:54:09 +000029
Wolfgang Denke71d99d2010-11-20 15:07:45 +010030 *(.text*)
wdenk4e112c12003-06-03 23:54:09 +000031 }
32 _etext = .;
33 PROVIDE (etext = .);
34 .rodata :
35 {
Trent Piepho4438e5e2009-02-18 15:22:05 -080036 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
wdenk4e112c12003-06-03 23:54:09 +000037 }
wdenk4e112c12003-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 {
wdenk4e112c12003-06-03 23:54:09 +000045 _GOT2_TABLE_ = .;
Wolfgang Denke71d99d2010-11-20 15:07:45 +010046 KEEP(*(.got2))
Joakim Tjernlunda65f8c82011-04-20 14:22:59 +020047 KEEP(*(.got))
48 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
wdenk4e112c12003-06-03 23:54:09 +000049 _FIXUP_TABLE_ = .;
Wolfgang Denke71d99d2010-11-20 15:07:45 +010050 KEEP(*(.fixup))
wdenk4e112c12003-06-03 23:54:09 +000051 }
Joakim Tjernlunda65f8c82011-04-20 14:22:59 +020052 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
wdenk4e112c12003-06-03 23:54:09 +000053 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
54
55 .data :
56 {
Wolfgang Denke71d99d2010-11-20 15:07:45 +010057 *(.data*)
58 *(.sdata*)
wdenk4e112c12003-06-03 23:54:09 +000059 }
60 _edata = .;
61 PROVIDE (edata = .);
62
Wolfgang Denk5dd2c652005-08-31 12:28:00 +020063 . = .;
wdenk57b2d802003-06-27 21:31:46 +000064
Marek Vasut607092a2012-10-12 10:27:03 +000065 . = ALIGN(4);
66 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000067 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000068 }
69
Wolfgang Denk5dd2c652005-08-31 12:28:00 +020070 . = .;
wdenk4e112c12003-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 Denk828a9782008-01-12 20:31:39 +010083 .bss (NOLOAD) :
wdenk4e112c12003-06-03 23:54:09 +000084 {
Wolfgang Denke71d99d2010-11-20 15:07:45 +010085 *(.bss*)
86 *(.sbss*)
wdenk4e112c12003-06-03 23:54:09 +000087 *(COMMON)
Selvamuthukumard2454ba2008-10-16 22:54:03 +053088 . = ALIGN(4);
wdenk4e112c12003-06-03 23:54:09 +000089 }
Simon Glassed70c8f2013-03-14 06:54:53 +000090 __bss_end = . ;
wdenk4e112c12003-06-03 23:54:09 +000091 PROVIDE (end = .);
92}