Skip to content

Commit 1212ea0

Browse files
nandojvecarlescufi
authored andcommitted
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 <[email protected]>
1 parent a3a3125 commit 1212ea0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/arch/riscv/common/linker.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ GROUP_START(ITCM)
320320
} GROUP_LINK_IN(ITCM AT> ROMABLE_REGION)
321321

322322
__itcm_size = __itcm_end - __itcm_start;
323-
__itcm_rom_start = LOADADDR(_ITCM_SECTION_NAME);
323+
__itcm_load_start = LOADADDR(_ITCM_SECTION_NAME);
324324

325325
GROUP_END(ITCM)
326326
#endif
@@ -355,7 +355,7 @@ GROUP_START(DTCM)
355355

356356
__dtcm_end = .;
357357

358-
__dtcm_data_rom_start = LOADADDR(_DTCM_DATA_SECTION_NAME);
358+
__dtcm_data_load_start = LOADADDR(_DTCM_DATA_SECTION_NAME);
359359

360360
GROUP_END(DTCM)
361361
#endif

0 commit comments

Comments
 (0)