| /* Copyright lowRISC contributors. */ |
| /* Licensed under the Apache License, Version 2.0, see LICENSE for details. */ |
| /* SPDX-License-Identifier: Apache-2.0 */ |
| |
| /** |
| * Linker script for OpenTitan OTTF-launched test binaries. |
| * |
| * Portions of this file are Ibex-specific. |
| * |
| * This linker script generates a binary to run BL0 tests. |
| */ |
| |
| INCLUDE hw/top_earlgrey/sw/autogen/top_earlgrey_memory.ld |
| |
| /** |
| * Symbols to be used in the setup of the address translation for ROM_EXT. |
| */ |
| /* TODO(#9045): Move BL0 size to a common location. */ |
| _ottf_size = LENGTH(owner_virtual) - 64K; |
| _ottf_start_address = ORIGIN(owner_virtual) + 64K; |
| ASSERT((_ottf_size <= (LENGTH(eflash) / 2)), |
| "Error: BL0 flash is bigger than slot."); |
| |
| REGION_ALIAS("ottf_flash", owner_virtual); |
| |
| INCLUDE sw/device/lib/testing/test_framework/ottf_common.ld |