Roberto Vargas | e92111a | 2018-05-22 16:05:42 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 7 | #include <lib/xlat_tables/xlat_tables_defs.h> |
Roberto Vargas | e92111a | 2018-05-22 16:05:42 +0100 | [diff] [blame] | 8 | #include <platform_def.h> |
Roberto Vargas | e92111a | 2018-05-22 16:05:42 +0100 | [diff] [blame] | 9 | |
| 10 | MEMORY { |
| 11 | ROM (rx): ORIGIN = ROMLIB_RO_BASE, LENGTH = ROMLIB_RO_LIMIT - ROMLIB_RO_BASE |
| 12 | RAM (rwx): ORIGIN = ROMLIB_RW_BASE, LENGTH = ROMLIB_RW_END - ROMLIB_RW_BASE |
| 13 | } |
| 14 | |
| 15 | OUTPUT_FORMAT(PLATFORM_LINKER_FORMAT) |
| 16 | OUTPUT_ARCH(PLATFORM_LINKER_ARCH) |
| 17 | ENTRY(jmptbl) |
| 18 | |
| 19 | SECTIONS |
| 20 | { |
| 21 | . = ROMLIB_RO_BASE; |
| 22 | .text : { |
| 23 | *jmptbl.o(.text) |
| 24 | *(.text*) |
| 25 | *(.rodata*) |
| 26 | } >ROM |
| 27 | |
| 28 | __DATA_ROM_START__ = LOADADDR(.data); |
| 29 | |
| 30 | .data : { |
| 31 | __DATA_RAM_START__ = .; |
| 32 | *(.data*) |
| 33 | __DATA_RAM_END__ = .; |
| 34 | } >RAM AT>ROM |
| 35 | |
| 36 | __DATA_SIZE__ = SIZEOF(.data); |
| 37 | |
| 38 | .bss : { |
| 39 | __BSS_START__ = .; |
| 40 | *(.bss*) |
| 41 | __BSS_END__ = .; |
| 42 | } >RAM |
| 43 | __BSS_SIZE__ = SIZEOF(.bss); |
| 44 | } |