libdl/rtl-obj.c: synchronize cache after code relocation.

Memory content changes caused by relocation has to be
propagated to memory/cache level which is used/snooped
during instruction cache fill.

Closes #2438
This commit is contained in:
Pavel Pisa
2016-07-21 02:35:00 +02:00
parent dcf806ef51
commit 8709aa0459
4 changed files with 74 additions and 2 deletions

View File

@@ -970,6 +970,8 @@ rtems_rtl_rap_file_load (rtems_rtl_obj_t* obj, int fd)
if (!rtems_rtl_rap_relocate (&rap, obj))
return false;
rtems_rtl_obj_synchronize_cache (obj);
return true;
}