summaryrefslogtreecommitdiff
path: root/Userland/DynamicLoader
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-06-28 17:24:08 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-28 22:29:28 +0200
commit158355e0d773d1121286bf7a51575b554be98806 (patch)
treed2aa14921fe926236e8d2e58dfe316a0f6e23bff /Userland/DynamicLoader
parente35b0605013163ea2f3425ec4ed4489e64d03280 (diff)
downloadserenity-158355e0d773d1121286bf7a51575b554be98806.zip
Kernel+LibELF: Add support for validating and loading ELF64 executables
Diffstat (limited to 'Userland/DynamicLoader')
-rw-r--r--Userland/DynamicLoader/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/DynamicLoader/main.cpp b/Userland/DynamicLoader/main.cpp
index ddefa0176d..0b1924e5b8 100644
--- a/Userland/DynamicLoader/main.cpp
+++ b/Userland/DynamicLoader/main.cpp
@@ -35,8 +35,8 @@ static void perform_self_relocations(auxv_t* auxvp)
}
}
VERIFY(found_base_address);
- Elf32_Ehdr* header = (Elf32_Ehdr*)(base_address);
- Elf32_Phdr* pheader = (Elf32_Phdr*)(base_address + header->e_phoff);
+ ElfW(Ehdr)* header = (ElfW(Ehdr)*)(base_address);
+ ElfW(Phdr)* pheader = (ElfW(Phdr)*)(base_address + header->e_phoff);
u32 dynamic_section_addr = 0;
for (size_t i = 0; i < (size_t)header->e_phnum; ++i, ++pheader) {
if (pheader->p_type != PT_DYNAMIC)