Hi,

When the first time executing such a command "dlo libxx.ra:yy.rap" or "dlo
libxx.a:yy.o", RTL complains "no format loader found". when executing the
command the second time, the archive files can be loaded correctly. It is
because cache flush uses `file_size = -1` while file_size is unsigned type
, and  `rtems_rtl_obj_cache_read` should include a if condition because A
cache obj can cache different files but it can only cache one file  once.
 Hope this explaination is clear:) Details is in the patch.

Regards,
Peng.

Attachment: 0001-Fix-rap-elf-archive-file-load.patch
Description: Binary data

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to