From 1212ea0c399ab6c029d91195333dd7815a53d0c1 Mon Sep 17 00:00:00 2001 From: Gerson Fernando Budke Date: Tue, 12 Oct 2021 18:15:14 -0300 Subject: [PATCH] riscv: linker.ld: Fix undefined reference linker error The commit a28830b aligned the data and rename some symbols. However there are two symbols at riscv linker script that were missing, which causes below linker error: kernel/xip.c:28: undefined reference to `__itcm_load_start' kernel/xip.c:43: undefined reference to `__dtcm_data_load_start' Rename below symbols to fix the issues. __itcm_rom_start -> __itcm_load_start __dtcm_data_rom_start -> __dtcm_data_load_start Signed-off-by: Gerson Fernando Budke --- include/arch/riscv/common/linker.ld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/arch/riscv/common/linker.ld b/include/arch/riscv/common/linker.ld index 7ef6b2903fc..2d1b256fc5a 100644 --- a/include/arch/riscv/common/linker.ld +++ b/include/arch/riscv/common/linker.ld @@ -320,7 +320,7 @@ GROUP_START(ITCM) } GROUP_LINK_IN(ITCM AT> ROMABLE_REGION) __itcm_size = __itcm_end - __itcm_start; - __itcm_rom_start = LOADADDR(_ITCM_SECTION_NAME); + __itcm_load_start = LOADADDR(_ITCM_SECTION_NAME); GROUP_END(ITCM) #endif @@ -355,7 +355,7 @@ GROUP_START(DTCM) __dtcm_end = .; - __dtcm_data_rom_start = LOADADDR(_DTCM_DATA_SECTION_NAME); + __dtcm_data_load_start = LOADADDR(_DTCM_DATA_SECTION_NAME); GROUP_END(DTCM) #endif