[PATCH] Fix RTL archive file load

Peng Fan van.freenix at gmail.com
Mon Jul 14 13:23:22 UTC 2014


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20140714/655e2697/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-rap-elf-archive-file-load.patch
Type: application/octet-stream
Size: 1749 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20140714/655e2697/attachment.obj>

More information about the devel mailing list