diff options
Diffstat (limited to 'include/ELFObject.h')
-rw-r--r-- | include/ELFObject.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/ELFObject.h b/include/ELFObject.h index 3bacd88..d715d51 100644 --- a/include/ELFObject.h +++ b/include/ELFObject.h @@ -41,6 +41,8 @@ private: unsigned char *SHNCommonDataPtr; size_t SHNCommonDataFreeSize; + bool missingSymbols; + // TODO: Need refactor! bool initSHNCommonDataSize(size_t SHNCommonDataSize) { rsl_assert(!SHNCommonDataPtr && "Can't init twice."); @@ -54,7 +56,7 @@ private: } private: - ELFObject() : SHNCommonDataPtr(NULL) { } + ELFObject() : SHNCommonDataPtr(NULL), missingSymbols(false) { } public: template <typename Archiver> @@ -74,6 +76,10 @@ public: ELFSectionTy const *getSectionByName(std::string const &str) const; ELFSectionTy *getSectionByName(std::string const &str); + inline bool getMissingSymbols() const { + return missingSymbols; + } + void *allocateSHNCommonData(size_t size, size_t align = 1) { rsl_assert(size > 0 && align != 0); |