4
0
mirror of https://github.com/QuasarApp/LIEF.git synced 2025-05-08 17:59:34 +00:00

Merge pull request from Clcanny/charles-add-set-section-in-relocation-pull-request

Add section method to set section_ in class Relocation in ELF
This commit is contained in:
Romain 2020-12-06 18:48:01 +01:00 committed by GitHub
commit ae67fbef17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions
include/LIEF/ELF
src/ELF

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

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