blob: db86f084de1749e51470571a34d936f4adcee3da [file] [log] [blame]
/* Copyright lowRISC contributors. */
/* Licensed under the Apache License, Version 2.0, see LICENSE for details. */
/* SPDX-License-Identifier: Apache-2.0 */
/**
* Linker script for an OpenTitan ROM_EXT.
*
* Portions of this file are Ibex-specific.
*
* The ROM_EXT is actually kept in flash, rather than ROM. While a ROM_EXT can
* be loaded into either Slot A (the start of flash), or Slot B (the start of
* the upper half of flash), this linker script only targets Slot A.
*/
INCLUDE hw/top_earlgrey/sw/autogen/top_earlgrey_memory.ld
/* Reserving space at the top of the RAM for the stack. */
_stack_size = 0x2000;
_stack_end = ORIGIN(ram_main) + LENGTH(ram_main);
_stack_start = _stack_end - _stack_size;
/* Slot A starts at the start of the eFlash. */
_slot_start_address = ORIGIN(eflash);
INCLUDE sw/device/rom_exts/rom_ext_common.ld