RTEMS | Add dladdr() support to RTEMS (!679)
mazen Adel (@mez3n)
gitlab at rtems.org
Sun Aug 24 13:11:00 UTC 2025
mazen Adel commented on a discussion on cpukit/libdl/rtl.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/679#note_129378
> + rtems_chain_node* node;
> +
> + objects = rtems_rtl_objects_unprotected ();
> + if (!objects)
> + return NULL;
> +
> + for (node = rtems_chain_first (objects);
> + !rtems_chain_is_tail (objects, node);
> + node = rtems_chain_next (node))
> + {
> + rtems_rtl_obj* obj = (rtems_rtl_obj*) node;
> +
> + if (obj->text_base && obj->text_size > 0)
> + {
> + if (addr >= obj->text_base &&
> + addr < (void*)((char*)obj->text_base + obj->text_size))
Please review the changes and tell me if it needs any more modifications.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/679#note_129378
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/2a10e366/attachment.htm>
More information about the bugs
mailing list