blob: b30b667eb9035b752174d9360cb836a9882956c1 [file] [log] [blame]
wdenk3bac3512003-03-12 10:41:04 +00001/*
2**=====================================================================
3**
4** Copyright (C) 2000, 2001, 2002, 2003
5** The LEOX team <team@leox.org>, http://www.leox.org
6**
7** LEOX.org is about the development of free hardware and software resources
8** for system on chip.
9**
10** Description: U-Boot port on the LEOX's ELPT860 CPU board
11** ~~~~~~~~~~~
12**
13**=====================================================================
14**
Wolfgang Denk1a459662013-07-08 09:37:19 +020015 * SPDX-License-Identifier: GPL-2.0+
wdenk3bac3512003-03-12 10:41:04 +000016**
17**=====================================================================
18*/
19
20OUTPUT_ARCH(powerpc)
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010021
wdenk3bac3512003-03-12 10:41:04 +000022SECTIONS
23{
24 /* Read-only sections, merged into text segment: */
25 . = + SIZEOF_HEADERS;
wdenk3bac3512003-03-12 10:41:04 +000026 .text :
27 {
28 /* WARNING - the following is hand-optimized to fit within */
29 /* the sector layout of our flash chips! XXX FIXME XXX */
30
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010031 arch/powerpc/cpu/mpc8xx/start.o (.text*)
32 arch/powerpc/cpu/mpc8xx/traps.o (.text*)
33 common/libcommon.o (.text*)
34 arch/powerpc/cpu/mpc8xx/libmpc8xx.o (.text*)
35 board/LEOX/elpt860/libelpt860.o (.text*)
36 arch/powerpc/lib/libpowerpc.o (.text*)
wdenk3bac3512003-03-12 10:41:04 +000037
38 . = env_offset;
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010039 common/env_embedded.o (.text*)
wdenk3bac3512003-03-12 10:41:04 +000040
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010041 *(.text*)
wdenk3bac3512003-03-12 10:41:04 +000042 }
43 _etext = .;
44 PROVIDE (etext = .);
45 .rodata :
46 {
Trent Piephof62fb992009-02-18 15:22:05 -080047 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
wdenk3bac3512003-03-12 10:41:04 +000048 }
wdenk3bac3512003-03-12 10:41:04 +000049
50 /* Read-write section, merged into data segment: */
51 . = (. + 0x00FF) & 0xFFFFFF00;
52 _erotext = .;
53 PROVIDE (erotext = .);
54 .reloc :
55 {
wdenk3bac3512003-03-12 10:41:04 +000056 _GOT2_TABLE_ = .;
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010057 KEEP(*(.got2))
Joakim Tjernlund9d8fbd12011-04-20 14:22:59 +020058 KEEP(*(.got))
59 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
wdenk3bac3512003-03-12 10:41:04 +000060 _FIXUP_TABLE_ = .;
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010061 KEEP(*(.fixup))
wdenk3bac3512003-03-12 10:41:04 +000062 }
Joakim Tjernlund9d8fbd12011-04-20 14:22:59 +020063 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
wdenk3bac3512003-03-12 10:41:04 +000064 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
65
66 .data :
67 {
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010068 *(.data*)
69 *(.sdata*)
wdenk3bac3512003-03-12 10:41:04 +000070 }
71 _edata = .;
72 PROVIDE (edata = .);
73
Wolfgang Denk807d5d72005-08-31 12:28:00 +020074 . = .;
wdenk8bde7f72003-06-27 21:31:46 +000075
Marek Vasut55675142012-10-12 10:27:03 +000076 . = ALIGN(4);
77 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000078 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000079 }
80
Wolfgang Denk807d5d72005-08-31 12:28:00 +020081 . = .;
wdenk3bac3512003-03-12 10:41:04 +000082 __start___ex_table = .;
83 __ex_table : { *(__ex_table) }
84 __stop___ex_table = .;
85
86 . = ALIGN(256);
87 __init_begin = .;
88 .text.init : { *(.text.init) }
89 .data.init : { *(.data.init) }
90 . = ALIGN(256);
91 __init_end = .;
92
93 __bss_start = .;
Wolfgang Denk64134f02008-01-12 20:31:39 +010094 .bss (NOLOAD) :
wdenk3bac3512003-03-12 10:41:04 +000095 {
Wolfgang Denkcd0402a2010-11-20 15:07:45 +010096 *(.bss*)
97 *(.sbss*)
wdenk3bac3512003-03-12 10:41:04 +000098 *(COMMON)
Selvamuthukumar9b827cf2008-10-16 22:54:03 +053099 . = ALIGN(4);
wdenk3bac3512003-03-12 10:41:04 +0000100 }
Simon Glass3929fb02013-03-14 06:54:53 +0000101 __bss_end = . ;
wdenk3bac3512003-03-12 10:41:04 +0000102 PROVIDE (end = .);
103}