Stefan Roese | 083f2e0 | 2012-08-16 17:53:18 +0200 | [diff] [blame] | 1 | /* |
| 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 | |
| 20 | MEMORY |
| 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 | |
| 28 | OUTPUT_ARCH(powerpc) |
| 29 | ENTRY(_start) |
| 30 | SECTIONS |
| 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 Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 55 | __bss_end = .; |
Stefan Roese | 083f2e0 | 2012-08-16 17:53:18 +0200 | [diff] [blame] | 56 | } > sdram |
| 57 | } |