On 14/2/19 5:26 pm, Сергей Круглов wrote: > 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; >
Thank you. Would you be able to send a git patch to de...@rtems.org? Thanks Chris _______________________________________________ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users