Skip to content

Commit dfb5ef2

Browse files
nandojvecfriedt
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 4195836 commit dfb5ef2

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
@@ -304,7 +304,7 @@ GROUP_START(ITCM)
304304
} GROUP_LINK_IN(ITCM AT> ROMABLE_REGION)
305305

306306
__itcm_size = __itcm_end - __itcm_start;
307-
__itcm_rom_start = LOADADDR(_ITCM_SECTION_NAME);
307+
__itcm_load_start = LOADADDR(_ITCM_SECTION_NAME);
308308

309309
GROUP_END(ITCM)
310310
#endif
@@ -339,7 +339,7 @@ GROUP_START(DTCM)
339339

340340
__dtcm_end = .;
341341

342-
__dtcm_data_rom_start = LOADADDR(_DTCM_DATA_SECTION_NAME);
342+
__dtcm_data_load_start = LOADADDR(_DTCM_DATA_SECTION_NAME);
343343

344344
GROUP_END(DTCM)
345345
#endif

0 commit comments

Comments
 (0)