55 lines
1.2 KiB
Plaintext
55 lines
1.2 KiB
Plaintext
/*
|
|
* Copyright (c) 2021 Telink Semiconductor
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @brief Linker script for the Telink B91 SoC
|
|
*/
|
|
|
|
#include <zephyr/devicetree.h>
|
|
#include <zephyr/linker/linker-tool.h>
|
|
|
|
MEMORY
|
|
{
|
|
RAM_ILM (rwx) : ORIGIN = DT_REG_ADDR(DT_NODELABEL(ram_ilm)), LENGTH = DT_REG_SIZE(DT_NODELABEL(ram_ilm))
|
|
}
|
|
|
|
#include <zephyr/arch/riscv/common/linker.ld>
|
|
|
|
SECTIONS
|
|
{
|
|
SECTION_DATA_PROLOGUE(aes_data,,)
|
|
{
|
|
. = ALIGN(8);
|
|
*(.aes_data)
|
|
*(".aes_data.*")
|
|
|
|
PROVIDE (_AES_DATA_VMA_END = .);
|
|
PROVIDE (_AES_DATA_VMA_START = ADDR(aes_data));
|
|
} GROUP_DATA_LINK_IN(RAM_ILM, ROMABLE_REGION)
|
|
|
|
SECTION_DATA_PROLOGUE(retention_data,,)
|
|
{
|
|
. = ALIGN(8);
|
|
*(.retention_data)
|
|
*(".retention_data.*")
|
|
|
|
PROVIDE (_RETENTION_DATA_VMA_END = .);
|
|
PROVIDE (_RETENTION_DATA_VMA_START = ADDR(retention_data));
|
|
PROVIDE (_RETENTION_DATA_LMA_START = LOADADDR(retention_data));
|
|
} GROUP_DATA_LINK_IN(RAM_ILM, ROMABLE_REGION)
|
|
|
|
SECTION_DATA_PROLOGUE(ram_code,,)
|
|
{
|
|
. = ALIGN(8);
|
|
*(.ram_code)
|
|
*(".ram_code.*")
|
|
|
|
PROVIDE (_RAMCODE_VMA_END = .);
|
|
PROVIDE (_RAMCODE_VMA_START = ADDR(ram_code));
|
|
PROVIDE (_RAMCODE_LMA_START = LOADADDR(ram_code));
|
|
} GROUP_DATA_LINK_IN(RAM_ILM, ROMABLE_REGION)
|
|
}
|