blob: 1aa925e932f8da120b9505f00c16106aa4b4f474 [file] [log] [blame]
Stefan Roese083f2e02012-08-16 17:53:18 +02001/*
2 * Copyright 2012 Stefan Roese <sr@denx.de>
3 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Stefan Roese083f2e02012-08-16 17:53:18 +02005 */
6
7MEMORY
8{
9 sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR,
10 LENGTH = CONFIG_SPL_BSS_MAX_SIZE
11 flash : ORIGIN = CONFIG_SPL_TEXT_BASE,
12 LENGTH = CONFIG_SYS_SPL_MAX_LEN
13}
14
15OUTPUT_ARCH(powerpc)
16ENTRY(_start)
17SECTIONS
18{
19 .text :
20 {
21 __start = .;
22 arch/powerpc/cpu/mpc5xxx/start.o (.text)
23 *(.text*)
24 } > flash
25
26 . = ALIGN(4);
27 .data : { *(SORT_BY_ALIGNMENT(.data*)) } > flash
28
29 . = ALIGN(4);
30 .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } > flash
31
32 . = ALIGN(4);
33 .end_align : { *(.end_align*) } > flash
34 __spl_flash_end = .;
35
36 .bss :
37 {
38 . = ALIGN(4);
39 __bss_start = .;
40 *(.bss*)
41 . = ALIGN(4);
Simon Glass3929fb02013-03-14 06:54:53 +000042 __bss_end = .;
Stefan Roese083f2e02012-08-16 17:53:18 +020043 } > sdram
44}