From cdae397e6a563923f90766ed7d6bce35d7bd0520 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 22 Jul 2021 22:40:33 +0200 Subject: DynamicLoader: Don't truncate dynamic section address on x86_64 --- Userland/DynamicLoader/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/DynamicLoader/main.cpp') diff --git a/Userland/DynamicLoader/main.cpp b/Userland/DynamicLoader/main.cpp index 6a027c0832..e9e07a575d 100644 --- a/Userland/DynamicLoader/main.cpp +++ b/Userland/DynamicLoader/main.cpp @@ -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; -- cgit v1.2.3