This was copied from the ARM version of the test's linker script, which in turn seems to have been copied from another linker script at some point. Remove the incorrect comment. Signed-off-by: Peter Marheine <pmarheine@chromium.org>
28 lines
784 B
Plaintext
28 lines
784 B
Plaintext
/*
|
|
* Copyright 2022 The Chromium OS Authors
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr/linker/sections.h>
|
|
#include <zephyr/devicetree.h>
|
|
|
|
#include <zephyr/linker/linker-defs.h>
|
|
#include <zephyr/linker/linker-tool.h>
|
|
|
|
/** enable CONFIG_SRAM2 or any other partition in soc Kconfig,
|
|
* this is just an example to show relocation of code/data/bss script
|
|
*/
|
|
#define _SRAM2_DATA_SECTION_NAME .sram2_data
|
|
#define _SRAM2_BSS_SECTION_NAME .sram2_bss
|
|
#define _SRAM2_TEXT_SECTION_NAME .sram2_text
|
|
#define SRAM2_ADDR (CONFIG_SRAM_BASE_ADDRESS + RAM_SIZE2)
|
|
|
|
#define RAM_SIZE2 (CONFIG_SRAM_SIZE * 512)
|
|
MEMORY
|
|
{
|
|
SRAM2 (wx) : ORIGIN = (CONFIG_SRAM_BASE_ADDRESS + RAM_SIZE2), LENGTH = RAM_SIZE2
|
|
}
|
|
|
|
#include <zephyr/arch/riscv/common/linker.ld>
|