blob: 2aac4adf6fc86e92e8361d9a762d379c5bedbc9d [file] [log] [blame]
Roberto Vargase92111a2018-05-22 16:05:42 +01001/*
2 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00007#include <lib/xlat_tables/xlat_tables_defs.h>
Roberto Vargase92111a2018-05-22 16:05:42 +01008#include <platform_def.h>
Roberto Vargase92111a2018-05-22 16:05:42 +01009
10MEMORY {
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
15OUTPUT_FORMAT(PLATFORM_LINKER_FORMAT)
16OUTPUT_ARCH(PLATFORM_LINKER_ARCH)
17ENTRY(jmptbl)
18
19SECTIONS
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}