From 4d5965bd2c07bd88c91c5977a5a7e7a546a09917 Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Sun, 13 Mar 2022 08:42:25 +0100 Subject: LibELF: Keep track of whether the PLT contains REL or RELA relocations --- Userland/Libraries/LibELF/DynamicObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibELF') diff --git a/Userland/Libraries/LibELF/DynamicObject.cpp b/Userland/Libraries/LibELF/DynamicObject.cpp index ad1e5b1c4f..2b0f6b42bb 100644 --- a/Userland/Libraries/LibELF/DynamicObject.cpp +++ b/Userland/Libraries/LibELF/DynamicObject.cpp @@ -244,7 +244,7 @@ DynamicObject::RelocationSection DynamicObject::relocation_section() const DynamicObject::RelocationSection DynamicObject::plt_relocation_section() const { - return RelocationSection(Section(*this, m_plt_relocation_offset_location, m_size_of_plt_relocation_entry_list, m_size_of_relocation_entry, "DT_JMPREL"sv), false); + return RelocationSection(Section(*this, m_plt_relocation_offset_location, m_size_of_plt_relocation_entry_list, m_size_of_relocation_entry, "DT_JMPREL"sv), m_procedure_linkage_table_relocation_type & DT_RELA); } DynamicObject::Section DynamicObject::relr_relocation_section() const -- cgit v1.2.3