mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:37:34 +00:00
DynamicLoader: Don't truncate dynamic section address on x86_64
This commit is contained in:
parent
e44a41d0bf
commit
cdae397e6a
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ static void perform_self_relocations(auxv_t* auxvp)
|
|||
VERIFY(found_base_address);
|
||||
ElfW(Ehdr)* header = (ElfW(Ehdr)*)(base_address);
|
||||
ElfW(Phdr)* pheader = (ElfW(Phdr)*)(base_address + header->e_phoff);
|
||||
u32 dynamic_section_addr = 0;
|
||||
FlatPtr dynamic_section_addr = 0;
|
||||
for (size_t i = 0; i < (size_t)header->e_phnum; ++i, ++pheader) {
|
||||
if (pheader->p_type != PT_DYNAMIC)
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue