RTEMS | Add dladdr() support to RTEMS (!679)
Chris Johns (@chris)
gitlab at rtems.org
Sun Aug 24 23:45:59 UTC 2025
Chris Johns commented on a discussion on cpukit/libdl/rtl.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/679#note_129395
> +rtems_rtl_obj_find_symbol_by_addr (const rtems_rtl_obj* obj, const void* addr)
> +{
> + rtems_rtl_obj_sym* best_sym = NULL;
> + const void* best_addr = NULL;
> + size_t i;
> +
> + for (i = 0; i < obj->global_syms; ++i)
> + {
> + rtems_rtl_obj_sym* sym = &obj->global_table[i];
> +
> + if (sym->value <= addr)
> + {
> + if (!best_sym || sym->value > best_addr)
> + {
> + best_sym = sym;
> + best_addr = sym->value;
I have reviewed the code again and it looks fine. Thanks.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/679#note_129395
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/20250824/6c2e2059/attachment-0001.htm>
More information about the bugs
mailing list