RTEMS | cpukit/libdl: Fix loading symbols from an object file at runtime (!460)
Chris Johns (@chris)
gitlab at rtems.org
Tue Apr 1 01:25:04 UTC 2025
Chris Johns created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/460
Project:Branches: chris/rtems:5234-runtime-symbols-loading-is-broken to rtems/rtos/rtems:main
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 #5234
<!--Default settings, if it is a dropdown it will set after submission-->
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/460
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/cbe1d0cc/attachment-0001.htm>
More information about the bugs
mailing list