blob: 87642d6b405f9345dcaceb83e4f3a5a6e99b8978 [file] [log] [blame]
wdenkefee1702002-07-20 20:14:13 +00001/*
Wolfgang Denkcd0402a2010-11-20 15:07:45 +01002 * (C) Copyright 2000-2010
wdenkefee1702002-07-20 20:14:13 +00003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenkefee1702002-07-20 20:14:13 +00006 */
7
8OUTPUT_ARCH(powerpc)
Wolfgang Denkcd0402a2010-11-20 15:07:45 +01009
wdenkefee1702002-07-20 20:14:13 +000010SECTIONS
11{
12 /* Read-only sections, merged into text segment: */
13 . = + SIZEOF_HEADERS;
wdenkefee1702002-07-20 20:14:13 +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 net/libnet.o (.text*)
22 board/esteem192e/libesteem192e.o (.text*)
wdenkefee1702002-07-20 20:14:13 +000023
24 . = env_offset;
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010025 common/env_embedded.o (.text*)
wdenkefee1702002-07-20 20:14:13 +000026
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010027 *(.text*)
wdenkefee1702002-07-20 20:14:13 +000028 }
29 _etext = .;
30 PROVIDE (etext = .);
31 .rodata :
32 {
Trent Piephof62fb992009-02-18 15:22:05 -080033 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
wdenkefee1702002-07-20 20:14:13 +000034 }
wdenkefee1702002-07-20 20:14:13 +000035
36 /* Read-write section, merged into data segment: */
37 . = (. + 0x00FF) & 0xFFFFFF00;
38 _erotext = .;
39 PROVIDE (erotext = .);
40 .reloc :
41 {
wdenkefee1702002-07-20 20:14:13 +000042 _GOT2_TABLE_ = .;
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010043 KEEP(*(.got2))
Joakim Tjernlund9d8fbd12011-04-20 14:22:59 +020044 KEEP(*(.got))
45 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
wdenkefee1702002-07-20 20:14:13 +000046 _FIXUP_TABLE_ = .;
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010047 KEEP(*(.fixup))
wdenkefee1702002-07-20 20:14:13 +000048 }
Joakim Tjernlund9d8fbd12011-04-20 14:22:59 +020049 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
wdenkefee1702002-07-20 20:14:13 +000050 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
51
52 .data :
53 {
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010054 *(.data*)
55 *(.sdata*)
wdenkefee1702002-07-20 20:14:13 +000056 }
57 _edata = .;
58 PROVIDE (edata = .);
59
Wolfgang Denk807d5d72005-08-31 12:28:00 +020060 . = .;
wdenk8bde7f72003-06-27 21:31:46 +000061
Marek Vasut55675142012-10-12 10:27:03 +000062 . = ALIGN(4);
63 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000064 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000065 }
66
wdenk8bde7f72003-06-27 21:31:46 +000067
Wolfgang Denk807d5d72005-08-31 12:28:00 +020068 . = .;
wdenkefee1702002-07-20 20:14:13 +000069 __start___ex_table = .;
70 __ex_table : { *(__ex_table) }
71 __stop___ex_table = .;
72
73 . = ALIGN(256);
74 __init_begin = .;
75 .text.init : { *(.text.init) }
76 .data.init : { *(.data.init) }
77 . = ALIGN(256);
78 __init_end = .;
79
80 __bss_start = .;
Wolfgang Denk64134f02008-01-12 20:31:39 +010081 .bss (NOLOAD) :
wdenkefee1702002-07-20 20:14:13 +000082 {
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010083 *(.bss*)
84 *(.sbss*)
wdenkefee1702002-07-20 20:14:13 +000085 *(COMMON)
Selvamuthukumar9b827cf2008-10-16 22:54:03 +053086 . = ALIGN(4);
wdenkefee1702002-07-20 20:14:13 +000087 }
Simon Glass3929fb02013-03-14 06:54:53 +000088 __bss_end = . ;
wdenkefee1702002-07-20 20:14:13 +000089 PROVIDE (end = .);
90}