forked from Imagelibrary/rtems
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user