Re: [PATCH] Fix RTL archive file load

2014-07-15 Thread Chris Johns

On 14/07/2014 11:23 pm, Peng Fan wrote:


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.


Applied. Thanks.

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


[PATCH] Fix RTL archive file load

2014-07-14 Thread Peng Fan
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.


0001-Fix-rap-elf-archive-file-load.patch
Description: Binary data
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel