mirror of
https://github.com/QuasarApp/LIEF.git
synced 2025-04-27 12:54:32 +00:00
Add section method to set section_ in class Relocation in ELF
This commit is contained in:
parent
2145d79efb
commit
24a07e23cc
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user