blob: 49226251b2fca2ed64a1a7ef27d7dabd51de54b2 [file] [log] [blame]
wdenkc8434db2003-03-26 06:55:25 +00001/*
Wolfgang Denke71d99d2010-11-20 15:07:45 +01002 * (C) Copyright 2000-2010
wdenkc8434db2003-03-26 06:55:25 +00003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenkc8434db2003-03-26 06:55:25 +00006 */
7
8OUTPUT_ARCH(powerpc)
Wolfgang Denke71d99d2010-11-20 15:07:45 +01009
wdenkc8434db2003-03-26 06:55:25 +000010SECTIONS
11{
12 /* Read-only sections, merged into text segment: */
13 . = + SIZEOF_HEADERS;
wdenkc8434db2003-03-26 06:55:25 +000014 .text :
15 {
16 /* WARNING - the following is hand-optimized to fit within */
17 /* the sector layout of our flash chips! XXX FIXME XXX */
Wolfgang Denke71d99d2010-11-20 15:07:45 +010018 arch/powerpc/cpu/mpc8xx/start.o (.text*)
19 arch/powerpc/cpu/mpc8xx/traps.o (.text*)
20 lib/libgeneric.o (.text*)
21 net/libnet.o (.text*)
22 arch/powerpc/cpu/mpc8xx/libmpc8xx.o (.text*)
23 arch/powerpc/lib/libpowerpc.o (.text*)
24 board/svm_sc8xx/libsvm_sc8xx.o (.text*)
25 *(.text.*printf)
26 *(.text.do_mem_*)
27 *(.text.flash*)
28 *(.text.run_command)
29 *(.text.main_loop)
30 *(.text.srec_decode)
wdenkc8434db2003-03-26 06:55:25 +000031
32 . = env_offset;
Wolfgang Denke71d99d2010-11-20 15:07:45 +010033 common/env_embedded.o (.ppcenv*)
wdenkc8434db2003-03-26 06:55:25 +000034
Wolfgang Denke71d99d2010-11-20 15:07:45 +010035 *(.text*)
wdenkc8434db2003-03-26 06:55:25 +000036 }
37 _etext = .;
38 PROVIDE (etext = .);
39 .rodata :
40 {
Trent Piepho4438e5e2009-02-18 15:22:05 -080041 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
wdenkc8434db2003-03-26 06:55:25 +000042 }
wdenkc8434db2003-03-26 06:55:25 +000043
44 /* Read-write section, merged into data segment: */
45 . = (. + 0x00FF) & 0xFFFFFF00;
46 _erotext = .;
47 PROVIDE (erotext = .);
48 .reloc :
49 {
wdenkc8434db2003-03-26 06:55:25 +000050 _GOT2_TABLE_ = .;
Wolfgang Denke71d99d2010-11-20 15:07:45 +010051 KEEP(*(.got2))
Joakim Tjernlunda65f8c82011-04-20 14:22:59 +020052 KEEP(*(.got))
53 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
wdenkc8434db2003-03-26 06:55:25 +000054 _FIXUP_TABLE_ = .;
Wolfgang Denke71d99d2010-11-20 15:07:45 +010055 KEEP(*(.fixup))
wdenkc8434db2003-03-26 06:55:25 +000056 }
Joakim Tjernlunda65f8c82011-04-20 14:22:59 +020057 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
wdenkc8434db2003-03-26 06:55:25 +000058 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
59
60 .data :
61 {
Wolfgang Denke71d99d2010-11-20 15:07:45 +010062 *(.data*)
63 *(.sdata*)
wdenkc8434db2003-03-26 06:55:25 +000064 }
65 _edata = .;
66 PROVIDE (edata = .);
67
wdenk57b2d802003-06-27 21:31:46 +000068
Wolfgang Denk5dd2c652005-08-31 12:28:00 +020069 . = .;
wdenk57b2d802003-06-27 21:31:46 +000070
Marek Vasut607092a2012-10-12 10:27:03 +000071 . = ALIGN(4);
72 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000073 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000074 }
75
wdenk57b2d802003-06-27 21:31:46 +000076
Wolfgang Denk5dd2c652005-08-31 12:28:00 +020077 . = .;
wdenkc8434db2003-03-26 06:55:25 +000078 __start___ex_table = .;
79 __ex_table : { *(__ex_table) }
80 __stop___ex_table = .;
81
82 . = ALIGN(256);
83 __init_begin = .;
84 .text.init : { *(.text.init) }
85 .data.init : { *(.data.init) }
86 . = ALIGN(256);
87 __init_end = .;
88
89 __bss_start = .;
Wolfgang Denk828a9782008-01-12 20:31:39 +010090 .bss (NOLOAD) :
wdenkc8434db2003-03-26 06:55:25 +000091 {
Wolfgang Denke71d99d2010-11-20 15:07:45 +010092 *(.bss*)
93 *(.sbss*)
wdenkc8434db2003-03-26 06:55:25 +000094 *(COMMON)
Selvamuthukumard2454ba2008-10-16 22:54:03 +053095 . = ALIGN(4);
wdenkc8434db2003-03-26 06:55:25 +000096 }
Simon Glassed70c8f2013-03-14 06:54:53 +000097 __bss_end = . ;
wdenkc8434db2003-03-26 06:55:25 +000098 PROVIDE (end = .);
99}