1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 10:18:15 +09: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
Notes: sideshowbarker 2024-07-18 11:19:53 +09:00
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;
}