Skip to content

Conversation

@nandojve
Copy link
Member

@nandojve nandojve commented Oct 12, 2021

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]

@nandojve nandojve requested review from cfriedt and tejlmand October 12, 2021 21:24
@github-actions github-actions bot added area: API Changes to public APIs area: RISCV RISCV Architecture (32-bit & 64-bit) labels Oct 12, 2021
@nandojve nandojve removed the area: API Changes to public APIs label Oct 12, 2021
@nandojve nandojve added this to the v2.7.0 milestone Oct 12, 2021
@nandojve nandojve added Regression Something, which was working, does not anymore priority: medium Medium impact/importance bug labels Oct 12, 2021
@henrikbrixandersen
Copy link
Member

Do we have a way of reproducing a build error or testing this?

@henrikbrixandersen henrikbrixandersen self-requested a review October 13, 2021 07:10
@tejlmand
Copy link
Contributor

The commit 65a2de8 aligned the data and rename some symbols. However there are two symbols at riscv linker script that were missing, which causes below linker error:

Most likely happened because those PRs were crossing each other:
#36140
and
#37421

and thus the symbols where not present in the initial renaming update 😞

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]>
@nandojve nandojve force-pushed the fix_riscv_tcm_undefref branch from 9ae7aed to 254c32d Compare October 13, 2021 11:24
@github-actions github-actions bot added the area: API Changes to public APIs label Oct 13, 2021
@nashif nashif removed the priority: medium Medium impact/importance bug label Oct 13, 2021
@nashif
Copy link
Member

nashif commented Oct 13, 2021

if this needs to go to 2.7, please file a bug.

@henrikbrixandersen
Copy link
Member

The approvals are nice, but I would still like to know why the undefined references were not found in CI.

@cfriedt
Copy link
Member

cfriedt commented Oct 13, 2021

The approvals are nice, but I would still like to know why the undefined references were not found in CI.

Agreed. We really do need tests to accompany code changes on a more regular basis.

@cfriedt cfriedt added the DNM This PR should not be merged (Do Not Merge) label Oct 13, 2021
@cfriedt
Copy link
Member

cfriedt commented Oct 13, 2021

Just adding DNM until after v2.7.0 is released

@nashif nashif modified the milestones: v2.7.0, v2.7.1 Oct 20, 2021
@github-actions
Copy link

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Dec 20, 2021
@nandojve nandojve removed DNM This PR should not be merged (Do Not Merge) Stale labels Dec 20, 2021
@carlescufi carlescufi merged commit 1212ea0 into zephyrproject-rtos:main Dec 21, 2021
@nandojve nandojve deleted the fix_riscv_tcm_undefref branch December 21, 2021 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: API Changes to public APIs area: RISCV RISCV Architecture (32-bit & 64-bit) Regression Something, which was working, does not anymore

Projects

None yet

Development

Successfully merging this pull request may close these issues.

linker: Missing align __itcm_load_start / __dtcm_data_load_start linker symbols

7 participants