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

mazen Adel (@mez3n) gitlab at rtems.org
Sun Aug 24 13:09:51 UTC 2025




mazen Adel commented on a discussion on cpukit/libdl/dlfcn.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/679#note_129377

 > +  if (obj)
 > +  {
 > +    info->dli_fname = rtems_rtl_obj_fname (obj);
 > +    info->dli_fbase = rtems_rtl_obj_base_address (obj);
 > +    
 > +    sym = rtems_rtl_obj_find_symbol_by_addr (obj, addr);
 > +    if (sym)
 > +    {
 > +      info->dli_sname = sym->name;
 > +      info->dli_saddr = sym->value;
 > +    }
 > +  }
 > +  
 > +  rtems_rtl_unlock ();
 > +  
 > +  return obj != NULL;

Done.

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


More information about the bugs mailing list