blob: c5e57ec03b7cb3b2a03ed90e81fe1ccf59fdc990 [file] [log] [blame]
wdenkef5fe752003-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 Denkd79de1d2013-07-08 09:37:19 +020015 * SPDX-License-Identifier: GPL-2.0+
wdenkef5fe752003-03-12 10:41:04 +000016**
17**=====================================================================
18*/
19
20OUTPUT_ARCH(powerpc)
Wolfgang Denke71d99d2010-11-20 15:07:45 +010021
wdenkef5fe752003-03-12 10:41:04 +000022SECTIONS
23{
24 /* Read-only sections, merged into text segment: */
25 . = + SIZEOF_HEADERS;
wdenkef5fe752003-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 Denke71d99d2010-11-20 15:07:45 +010031 arch/powerpc/cpu/mpc8xx/start.o (.text*)
32 arch/powerpc/cpu/mpc8xx/traps.o (.text*)
Masahiro Yamada30a198b2013-11-11 14:36:00 +090033 common/built-in.o (.text*)
34 arch/powerpc/cpu/mpc8xx/built-in.o (.text*)
35 board/LEOX/elpt860/built-in.o (.text*)
36 arch/powerpc/lib/built-in.o (.text*)
wdenkef5fe752003-03-12 10:41:04 +000037
38 . = env_offset;
Wolfgang Denke71d99d2010-11-20 15:07:45 +010039 common/env_embedded.o (.text*)
wdenkef5fe752003-03-12 10:41:04 +000040
Wolfgang Denke71d99d2010-11-20 15:07:45 +010041 *(.text*)
wdenkef5fe752003-03-12 10:41:04 +000042 }
43 _etext = .;
44 PROVIDE (etext = .);
45 .rodata :
46 {
Trent Piepho4438e5e2009-02-18 15:22:05 -080047 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
wdenkef5fe752003-03-12 10:41:04 +000048 }
wdenkef5fe752003-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 {
wdenkef5fe752003-03-12 10:41:04 +000056 _GOT2_TABLE_ = .;
Wolfgang Denke71d99d2010-11-20 15:07:45 +010057 KEEP(*(.got2))
Joakim Tjernlunda65f8c82011-04-20 14:22:59 +020058 KEEP(*(.got))
59 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
wdenkef5fe752003-03-12 10:41:04 +000060 _FIXUP_TABLE_ = .;
Wolfgang Denke71d99d2010-11-20 15:07:45 +010061 KEEP(*(.fixup))
wdenkef5fe752003-03-12 10:41:04 +000062 }
Joakim Tjernlunda65f8c82011-04-20 14:22:59 +020063 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
wdenkef5fe752003-03-12 10:41:04 +000064 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
65
66 .data :
67 {
Wolfgang Denke71d99d2010-11-20 15:07:45 +010068 *(.data*)
69 *(.sdata*)
wdenkef5fe752003-03-12 10:41:04 +000070 }
71 _edata = .;
72 PROVIDE (edata = .);
73
Wolfgang Denk5dd2c652005-08-31 12:28:00 +020074 . = .;
wdenk57b2d802003-06-27 21:31:46 +000075
Marek Vasut607092a2012-10-12 10:27:03 +000076 . = ALIGN(4);
77 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000078 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000079 }
80
Wolfgang Denk5dd2c652005-08-31 12:28:00 +020081 . = .;
wdenkef5fe752003-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 Denk828a9782008-01-12 20:31:39 +010094 .bss (NOLOAD) :
wdenkef5fe752003-03-12 10:41:04 +000095 {
Wolfgang Denke71d99d2010-11-20 15:07:45 +010096 *(.bss*)
97 *(.sbss*)
wdenkef5fe752003-03-12 10:41:04 +000098 *(COMMON)
Selvamuthukumard2454ba2008-10-16 22:54:03 +053099 . = ALIGN(4);
wdenkef5fe752003-03-12 10:41:04 +0000100 }
Simon Glassed70c8f2013-03-14 06:54:53 +0000101 __bss_end = . ;
wdenkef5fe752003-03-12 10:41:04 +0000102 PROVIDE (end = .);
103}