- 
                Notifications
    
You must be signed in to change notification settings  - Fork 8.2k
 
riscv: linker.ld: Fix undefined reference linker error #39381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
riscv: linker.ld: Fix undefined reference linker error #39381
Conversation
| 
           Do we have a way of reproducing a build error or testing this?  | 
    
          
 Most likely happened because those PRs were crossing each other: 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]>
9ae7aed    to
    254c32d      
    Compare
  
    | 
           if this needs to go to 2.7, please file a bug.  | 
    
| 
           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.  | 
    
| 
           Just adding   | 
    
| 
           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.  | 
    
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:
Rename below symbols to fix the issues.
Signed-off-by: Gerson Fernando Budke [email protected]