Stefan Roese | 083f2e0 | 2012-08-16 17:53:18 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 Stefan Roese <sr@denx.de> |
| 3 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | 083f2e0 | 2012-08-16 17:53:18 +0200 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | MEMORY |
| 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 | |
| 15 | OUTPUT_ARCH(powerpc) |
| 16 | ENTRY(_start) |
| 17 | SECTIONS |
| 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 Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 42 | __bss_end = .; |
Stefan Roese | 083f2e0 | 2012-08-16 17:53:18 +0200 | [diff] [blame] | 43 | } > sdram |
| 44 | } |