1/* 2 * Copyright (c) 2019-2020 Cobham Gaisler AB 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/** 8 * @file 9 * @brief Linker command/script file 10 * 11 * Linker script for LEON3 12 */ 13 14#include <autoconf.h> 15#include <devicetree.h> 16 17MEMORY 18{ 19 rom (rx) : ORIGIN = 0x00000000, LENGTH = 512M 20 RAM (rwx) : ORIGIN = CONFIG_SRAM_BASE_ADDRESS, LENGTH = KB(CONFIG_SRAM_SIZE) 21 /* refer to include/linker/inlist.ld */ 22 IDT_LIST (wx) : ORIGIN = 0xFFFFF7FF, LENGTH = 2K 23} 24 25REGION_ALIAS("REGION_TEXT", RAM); 26REGION_ALIAS("REGION_RODATA", RAM); 27REGION_ALIAS("REGION_DATA_VMA", RAM); 28REGION_ALIAS("REGION_DATA_LMA", RAM); 29REGION_ALIAS("REGION_BSS", RAM); 30 31#define ROMABLE_REGION RAM 32#define RAMABLE_REGION RAM 33 34#include <arch/sparc/linker.ld> 35