Skip to content

Commit 1ac1bbc

Browse files
committed
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 <[email protected]>
1 parent 600e4ab commit 1ac1bbc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

bsp/nxp/mcx/mcxa/frdm-mcxa156/board/linker_scripts/MCXA156_flash.ld

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,26 @@ SECTIONS
6666
. = ALIGN(4);
6767
} > m_text
6868

69+
.rtt_const_tables :
70+
{
71+
/* section information for finsh shell */
72+
. = ALIGN(4);
73+
__fsymtab_start = .;
74+
KEEP(*(FSymTab))
75+
__fsymtab_end = .;
76+
77+
. = ALIGN(4);
78+
__vsymtab_start = .;
79+
KEEP(*(VSymTab))
80+
__vsymtab_end = .;
81+
82+
/* section information for initial. */
83+
. = ALIGN(4);
84+
__rt_init_start = .;
85+
KEEP(*(SORT(.rti_fn*)))
86+
__rt_init_end = .;
87+
} > m_text
88+
6989
.ARM.extab :
7090
{
7191
*(.ARM.extab* .gnu.linkonce.armextab.*)

0 commit comments

Comments
 (0)