After last patches libdl don't load rap files

Сергей Круглов sergkruglov at bk.ru
Thu Feb 14 06:26:21 UTC 2019


Hello!
After last patches libdl don't load rap files. Not allocated memory for sections.
You forget rtems_rtl_obj_alloc_sections before rtems_rtl_obj_load_sections in rtl-rap.c.
Earlier rtems_rtl_obj_load_sections allocate memory for all needed sections. Now this in rtems_rtl_obj_alloc_sections.
For correct need:
rtl-rap.c:957
  if (!rtems_rtl_obj_add_section (obj,
                                  section,
                                  rap_sections[section].name,
                                  rap.secs[section].size,
                                  0,
                                  rap.secs[section].alignment,
                                  0, 0,
                                  rap_sections[section].flags))
    return false;
}

/** obj->entry = (void*)(uintptr_t) ehdr.e_entry; */
/*
* Allocate the sections.
*/
if (!rtems_rtl_obj_alloc_sections (obj, fd, NULL, &rap))
  return false;

if (!rtems_rtl_obj_load_sections (obj, fd, rtems_rtl_rap_loader, &rap))
  return false;



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20190214/11319357/attachment.html>


More information about the users mailing list