summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibELF
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2022-03-13 08:42:25 +0100
committerAndreas Kling <kling@serenityos.org>2022-05-01 12:42:01 +0200
commit4d5965bd2c07bd88c91c5977a5a7e7a546a09917 (patch)
tree594f83d13ddba6c0e3ca0c8a8bcf9e7de785cee4 /Userland/Libraries/LibELF
parented5f110b402bc6fa48ee4efbfcffd94f43a061f3 (diff)
downloadserenity-4d5965bd2c07bd88c91c5977a5a7e7a546a09917.zip
LibELF: Keep track of whether the PLT contains REL or RELA relocations
Diffstat (limited to 'Userland/Libraries/LibELF')
-rw-r--r--Userland/Libraries/LibELF/DynamicObject.cpp2
1 files changed, 1 insertions, 1 deletions
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