diff --git a/include/LIEF/ELF/Relocation.hpp b/include/LIEF/ELF/Relocation.hpp index 09a2820..22d5763 100644 --- a/include/LIEF/ELF/Relocation.hpp +++ b/include/LIEF/ELF/Relocation.hpp @@ -97,6 +97,7 @@ class LIEF_API Relocation : public LIEF::Relocation { void purpose(RELOCATION_PURPOSES purpose); void info(uint32_t v); void symbol(Symbol* symbol); + void section(Section* section); virtual void accept(Visitor& visitor) const override; diff --git a/src/ELF/Relocation.cpp b/src/ELF/Relocation.cpp index 2830703..b032604 100644 --- a/src/ELF/Relocation.cpp +++ b/src/ELF/Relocation.cpp @@ -306,6 +306,10 @@ void Relocation::symbol(Symbol* sym) { this->symbol_ = sym; } +void Relocation::section(Section* section) { + this->section_ = section; +} + void Relocation::purpose(RELOCATION_PURPOSES purpose) { this->purpose_ = purpose;