Style nits

This commit is contained in:
Francisco José García García 2018-01-14 17:45:52 +01:00 committed by GitHub
parent dbd7c70ffd
commit a1688e342c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -396,7 +396,8 @@ void arm_load_exec(const arm_exec_object& elf)
std::memcpy(vm::base(p_vaddr[i]), prog.bin.data(), prog.p_filesz); std::memcpy(vm::base(p_vaddr[i]), prog.bin.data(), prog.p_filesz);
} }
else if (prog.p_type == 0x60000000) { else if (prog.p_type == 0x60000000)
{
// Relocation code taken from // Relocation code taken from
// https://github.com/yifanlu/UVLoader/blob/master/relocate.c // https://github.com/yifanlu/UVLoader/blob/master/relocate.c
// Relocation information of the SCE_PPURELA segment // Relocation information of the SCE_PPURELA segment
@ -502,7 +503,8 @@ void arm_load_exec(const arm_exec_object& elf)
offset = r_addend + symval - loc; offset = r_addend + symval - loc;
if (offset <= (s32)0xff000000 || if (offset <= (s32)0xff000000 ||
offset >= (s32)0x01000000) { offset >= (s32)0x01000000)
{
LOG_NOTICE(LOADER, "reloc %x out of range: 0x%08X", i, symval); LOG_NOTICE(LOADER, "reloc %x out of range: 0x%08X", i, symval);
break; break;
} }
@ -524,7 +526,8 @@ void arm_load_exec(const arm_exec_object& elf)
{ {
offset = r_addend + symval - loc; offset = r_addend + symval - loc;
if (offset <= (s32)0xfe000000 || if (offset <= (s32)0xfe000000 ||
offset >= (s32)0x02000000) { offset >= (s32)0x02000000)
{
LOG_NOTICE(LOADER, "reloc %x out of range: 0x%08X", i, symval); LOG_NOTICE(LOADER, "reloc %x out of range: 0x%08X", i, symval);
break; break;
} }