1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:47:44 +00:00

LibELF: Implement PLT relocations for x86_64

This commit is contained in:
Gunnar Beutner 2021-06-29 17:43:08 +02:00 committed by Andreas Kling
parent 1d4ae9194e
commit d3127efc01
3 changed files with 44 additions and 3 deletions

View file

@ -506,7 +506,7 @@ DynamicLoader::RelocationResult DynamicLoader::do_relocation(const ELF::DynamicO
u8* relocation_address = relocation.address().as_ptr();
if (m_elf_image.is_dynamic())
*(u32*)relocation_address += (FlatPtr)m_dynamic_object->base_address().as_ptr();
*(FlatPtr*)relocation_address += (FlatPtr)m_dynamic_object->base_address().as_ptr();
}
break;
}