Dinh Nguyen | 7775440 | 2012-10-04 06:46:02 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 Altera Corporation <www.altera.com> |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; either version 2 of the License, or |
| 7 | * (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, see <http://www.gnu.org/licenses/>. |
| 16 | */ |
| 17 | |
| 18 | MEMORY { .sdram : ORIGIN = (0), LENGTH = (0xffffffff) } |
| 19 | |
| 20 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 21 | OUTPUT_ARCH(arm) |
| 22 | ENTRY(_start) |
| 23 | SECTIONS |
| 24 | { |
| 25 | . = 0x00000000; |
| 26 | |
| 27 | . = ALIGN(4); |
| 28 | .text : |
| 29 | { |
Benoît Thébaudeau | 1a9a91d | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 30 | arch/arm/cpu/armv7/start.o (.text*) |
Dinh Nguyen | 7775440 | 2012-10-04 06:46:02 +0000 | [diff] [blame] | 31 | *(.text*) |
| 32 | } >.sdram |
| 33 | |
| 34 | . = ALIGN(4); |
| 35 | .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } >.sdram |
| 36 | |
| 37 | . = ALIGN(4); |
| 38 | .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sdram |
| 39 | |
| 40 | . = ALIGN(4); |
| 41 | __image_copy_end = .; |
| 42 | _end = .; |
| 43 | |
| 44 | .bss : { |
| 45 | . = ALIGN(4); |
| 46 | __bss_start = .; |
| 47 | *(.bss*) |
| 48 | . = ALIGN(4); |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 49 | __bss_end = .; |
Dinh Nguyen | 7775440 | 2012-10-04 06:46:02 +0000 | [diff] [blame] | 50 | } >.sdram |
| 51 | |
| 52 | . = ALIGN(8); |
| 53 | __malloc_start = .; |
| 54 | . = . + CONFIG_SPL_MALLOC_SIZE; |
| 55 | __malloc_end = .; |
| 56 | |
| 57 | . = . + CONFIG_SPL_STACK_SIZE; |
| 58 | . = ALIGN(8); |
| 59 | __stack_start = .; |
| 60 | } |