summaryrefslogtreecommitdiff
path: root/Userland/DynamicLoader/main.cpp
diff options
context:
space:
mode:
authorGunnar Beutner <gunnar@beutner.name>2021-04-16 21:53:43 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-18 10:55:25 +0200
commit6cb28ecee8399b0d79ccfa8b9d58fa04e88846d3 (patch)
treece1c0baa4980140034a1f66b4e6f3310c47e9ec2 /Userland/DynamicLoader/main.cpp
parentcf13fa57cde216b489f6ca1d88e38151151e7c6a (diff)
downloadserenity-6cb28ecee8399b0d79ccfa8b9d58fa04e88846d3.zip
LibC+LibELF: Implement support for the dl_iterate_phdr helper
This helper is used by libgcc_s to figure out where the .eh_frame sections are located for all loaded shared objects.
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 0f3685b434..3b824451cf 100644
--- a/Userland/DynamicLoader/main.cpp
+++ b/Userland/DynamicLoader/main.cpp
@@ -66,7 +66,7 @@ static void perform_self_relocations(auxv_t* auxvp)
if (!dynamic_section_addr)
exit(1);
- auto dynamic_object = ELF::DynamicObject::create((VirtualAddress(base_address)), (VirtualAddress(dynamic_section_addr)));
+ auto dynamic_object = ELF::DynamicObject::create({}, (VirtualAddress(base_address)), (VirtualAddress(dynamic_section_addr)));
dynamic_object->relocation_section().for_each_relocation([base_address](auto& reloc) {
if (reloc.type() != R_386_RELATIVE)