Przeglądaj źródła

LibELF: Keep track of whether the PLT contains REL or RELA relocations

Daniel Bertalan 3 lat temu
rodzic
commit
4d5965bd2c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Userland/Libraries/LibELF/DynamicObject.cpp

+ 1 - 1
Userland/Libraries/LibELF/DynamicObject.cpp

@@ -244,7 +244,7 @@ DynamicObject::RelocationSection DynamicObject::relocation_section() const
 
 
 DynamicObject::RelocationSection DynamicObject::plt_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
 DynamicObject::Section DynamicObject::relr_relocation_section() const