From 1ac1bbc584c46a5ff1492fcc99570a60c8945135 Mon Sep 17 00:00:00 2001 From: Yilin Sun Date: Wed, 19 Feb 2025 12:17:11 +0800 Subject: [PATCH] ports: nxp/mcx/mcxa/frdm-mcxa156: Fix GNU toolchain builds. This patch modifies the original linker script provided by NXP by adding RT-Thread related constant tables to flash. Signed-off-by: Yilin Sun --- .../board/linker_scripts/MCXA156_flash.ld | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/bsp/nxp/mcx/mcxa/frdm-mcxa156/board/linker_scripts/MCXA156_flash.ld b/bsp/nxp/mcx/mcxa/frdm-mcxa156/board/linker_scripts/MCXA156_flash.ld index efc24cbe150..a12369afd47 100644 --- a/bsp/nxp/mcx/mcxa/frdm-mcxa156/board/linker_scripts/MCXA156_flash.ld +++ b/bsp/nxp/mcx/mcxa/frdm-mcxa156/board/linker_scripts/MCXA156_flash.ld @@ -66,6 +66,26 @@ SECTIONS . = ALIGN(4); } > m_text + .rtt_const_tables : + { + /* section information for finsh shell */ + . = ALIGN(4); + __fsymtab_start = .; + KEEP(*(FSymTab)) + __fsymtab_end = .; + + . = ALIGN(4); + __vsymtab_start = .; + KEEP(*(VSymTab)) + __vsymtab_end = .; + + /* section information for initial. */ + . = ALIGN(4); + __rt_init_start = .; + KEEP(*(SORT(.rti_fn*))) + __rt_init_end = .; + } > m_text + .ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*)