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:
parent
1d4ae9194e
commit
d3127efc01
Notes:
sideshowbarker
2024-07-18 11:19:53 +09:00
Author: https://github.com/gunnarbeutner
Commit: d3127efc01
Pull-request: https://github.com/SerenityOS/serenity/pull/8317
3 changed files with 44 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue