From ab5c0b5195b990a9948081acaf12ffa6a06c7810 Mon Sep 17 00:00:00 2001 From: Iuliana Prodan Date: Mon, 16 Dec 2024 03:23:24 +0200 Subject: [PATCH] soc: nxp: imx: add resource_table section in linker script Add resource_table section in linker script for i.MX8ULP, for inter-process communication. Signed-off-by: Iuliana Prodan --- soc/nxp/imx/imx8ulp/adsp/linker.ld | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/soc/nxp/imx/imx8ulp/adsp/linker.ld b/soc/nxp/imx/imx8ulp/adsp/linker.ld index 45283cce03c..2f957819ae3 100644 --- a/soc/nxp/imx/imx8ulp/adsp/linker.ld +++ b/soc/nxp/imx/imx8ulp/adsp/linker.ld @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 NXP + * Copyright 2023-2025 NXP * * SPDX-License-Identifier: Apache-2.0 */ @@ -172,6 +172,13 @@ EXTERN(ext_man_fw_ver) SECTIONS { +#ifdef CONFIG_OPENAMP_RSC_TABLE + SECTION_PROLOGUE(.resource_table,, SUBALIGN(4)) + { + KEEP(*(.resource_table*)) + } GROUP_LINK_IN(ROMABLE_REGION) +#endif + #include #ifdef CONFIG_LLEXT