Skip to content

Commit c85d157

Browse files
iuliana-prodanMaureenHelm
authored andcommitted
soc: nxp: imx: add resource_table section in linker script
Add resource_table section in linker script for i.MX8QXP and i.MX8QM, for inter-process communication. Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
1 parent 715b973 commit c85d157

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

soc/nxp/imx/imx8/adsp/linker.ld

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021 NXP
2+
* Copyright 2021, 2024 NXP
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -171,6 +171,12 @@ EXTERN(ext_man_fw_ver)
171171

172172
SECTIONS
173173
{
174+
#ifdef CONFIG_OPENAMP_RSC_TABLE
175+
SECTION_PROLOGUE(.resource_table,, SUBALIGN(4))
176+
{
177+
KEEP(*(.resource_table*))
178+
} GROUP_LINK_IN(ROMABLE_REGION)
179+
#endif
174180

175181
#include <zephyr/linker/rel-sections.ld>
176182

soc/nxp/imx/imx8x/adsp/linker.ld

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021 NXP
2+
* Copyright 2021, 2024 NXP
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -172,6 +172,13 @@ EXTERN(ext_man_fw_ver)
172172
SECTIONS
173173
{
174174

175+
#ifdef CONFIG_OPENAMP_RSC_TABLE
176+
SECTION_PROLOGUE(.resource_table,, SUBALIGN(4))
177+
{
178+
KEEP(*(.resource_table*))
179+
} GROUP_LINK_IN(ROMABLE_REGION)
180+
#endif
181+
175182
#include <zephyr/linker/rel-sections.ld>
176183

177184
#ifdef CONFIG_LLEXT

0 commit comments

Comments
 (0)