blob: 05007396172b11f30c7a02ad9179d8c18b57ab13 [file] [log] [blame]
Stefan Roese083f2e02012-08-16 17:53:18 +02001/*
2 * Copyright 2012 Stefan Roese <sr@denx.de>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
17 * MA 02111-1307 USA
18 */
19
20MEMORY
21{
22 sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR,
23 LENGTH = CONFIG_SPL_BSS_MAX_SIZE
24 flash : ORIGIN = CONFIG_SPL_TEXT_BASE,
25 LENGTH = CONFIG_SYS_SPL_MAX_LEN
26}
27
28OUTPUT_ARCH(powerpc)
29ENTRY(_start)
30SECTIONS
31{
32 .text :
33 {
34 __start = .;
35 arch/powerpc/cpu/mpc5xxx/start.o (.text)
36 *(.text*)
37 } > flash
38
39 . = ALIGN(4);
40 .data : { *(SORT_BY_ALIGNMENT(.data*)) } > flash
41
42 . = ALIGN(4);
43 .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } > flash
44
45 . = ALIGN(4);
46 .end_align : { *(.end_align*) } > flash
47 __spl_flash_end = .;
48
49 .bss :
50 {
51 . = ALIGN(4);
52 __bss_start = .;
53 *(.bss*)
54 . = ALIGN(4);
Simon Glass3929fb02013-03-14 06:54:53 +000055 __bss_end = .;
Stefan Roese083f2e02012-08-16 17:53:18 +020056 } > sdram
57}