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 <zephyr/devicetree.h> 15 16MEMORY 17{ 18 rom (rx) : ORIGIN = 0x00000000, LENGTH = 512M 19 RAM (rwx) : ORIGIN = CONFIG_SRAM_BASE_ADDRESS, LENGTH = KB(CONFIG_SRAM_SIZE) 20 /* refer to include/linker/inlist.ld */ 21 IDT_LIST (wx) : ORIGIN = 0xFFFFF7FF, LENGTH = 2K 22} 23 24REGION_ALIAS("REGION_TEXT", RAM); 25REGION_ALIAS("REGION_RODATA", RAM); 26REGION_ALIAS("REGION_DATA_VMA", RAM); 27REGION_ALIAS("REGION_DATA_LMA", RAM); 28REGION_ALIAS("REGION_BSS", RAM); 29 30#define ROMABLE_REGION RAM 31#define RAMABLE_REGION RAM 32 33#include <zephyr/arch/sparc/linker.ld> 34