Add section method to set section_ in class Relocation in ELF

This commit is contained in:
Charles 2020-12-06 17:31:09 +08:00
parent 2145d79efb
commit 24a07e23cc
2 changed files with 5 additions and 0 deletions

View File

@ -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;

View File

@ -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;