RTEMS | Add dladdr() support to RTEMS (!679)

Chris Johns (@chris) gitlab at rtems.org
Sun Aug 24 23:22:44 UTC 2025




Chris Johns commented on a discussion on cpukit/libdl/rtl.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/679#note_129392

 > +  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))

Look good. Minor minor point is the space before the arg `(` as the existing coding style has that.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/679#note_129392
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/5f9403d4/attachment-0001.htm>


More information about the bugs mailing list