RTEMS | cpukit/libdl: Fix loading symbols from an object file at runtime (!461)

Chris Johns (@chris) gitlab at rtems.org
Tue Apr 1 01:34:22 UTC 2025



Chris Johns created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/461

Project:Branches: chris/rtems:5236-runtime-symbols-loading-is-broken to rtems/rtos/rtems:6
Author:   Chris Johns
Assignee: Chris Johns



## Summary

cpukit/libdl: Fix loading symbols from an object file at runtime

- Assume a relocation record with a symbol name with a length of 0 is resolved. ARM seems to create a symbol with no name for R_ARM_V4BX relocation records.
- Move the addition of the rtems_rtl_base_sym_global_add symbol to the global symbol table to the weak rtems_rtl_base_global_syms_init call. If symbols are embedded the support for runtime loading symbols is over loaded. This change is required so the base object has a valid global symbol table attached to track dependencies.

Fixes #5236

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/461
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250401/184d0087/attachment-0001.htm>


More information about the bugs mailing list