Skip to content
Snippets Groups Projects
Commit cd29ed89 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

refactoring libirdb-elfdep. redoing library naming scheme

parent 3bb506ce
No related branches found
No related tags found
No related merge requests found
#include <irdb-core>
#include <irdb-transform>
#include <string>
#include <memory>
namespace IRDB_SDK
{
using namespace std;
class ElfDependencies_t
{
protected:
ElfDependencies_t() { }
ElfDependencies_t(const ElfDependencies_t& copy) = delete;
public:
virtual ~ElfDependencies_t() { }
virtual void prependLibraryDepedencies(const string& libName) = 0;
virtual void appendLibraryDepedencies(const string& libName) = 0;
// return scoop and offset
virtual pair<IRDB_SDK::DataScoop_t*,int> appendGotEntry(const string &symbolName) = 0 ;
// return instruction that's the plt entry.
virtual Instruction_t* appendPltEntry(const string &symbolName) = 0 ;
static unique_ptr<ElfDependencies_t> factory(IRDB_SDK::FileIR_t* firp);
};
}
......@@ -32,7 +32,7 @@ namespace IRDB_SDK
void setInstructionAssembly(Instruction_t* instr, const string& p_asm);
virtual FileIR_t* getFileIR();
FileIR_t* getFileIR();
private:
......
#ifndef IRDB_SDK_elfdep
#define IRDB_SDK_elfdep
#include <inc-elfdep/elfdep.hpp>
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment