summaryrefslogtreecommitdiff
path: root/Userland/DynamicLoader/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-22 22:40:33 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-22 23:34:33 +0200
commitcdae397e6a563923f90766ed7d6bce35d7bd0520 (patch)
tree280860d0493cd1a3739b8308432a9e2d175d1f20 /Userland/DynamicLoader/main.cpp
parente44a41d0bfc7d2b52f8a3755dd91abe81bf858ea (diff)
downloadserenity-cdae397e6a563923f90766ed7d6bce35d7bd0520.zip
DynamicLoader: Don't truncate dynamic section address on x86_64
Diffstat (limited to 'Userland/DynamicLoader/main.cpp')
-rw-r--r--Userland/DynamicLoader/main.cpp2
1 files changed, 1 insertions, 1 deletions
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;