summaryrefslogtreecommitdiff
path: root/base/loader/elf_object.hh
diff options
context:
space:
mode:
Diffstat (limited to 'base/loader/elf_object.hh')
-rw-r--r--base/loader/elf_object.hh13
1 files changed, 6 insertions, 7 deletions
diff --git a/base/loader/elf_object.hh b/base/loader/elf_object.hh
index 9f0385d86..35a6c6d6e 100644
--- a/base/loader/elf_object.hh
+++ b/base/loader/elf_object.hh
@@ -29,19 +29,18 @@
#ifndef __ELF_OBJECT_HH__
#define __ELF_OBJECT_HH__
-/* Because of the -Wundef flag we have to do this */
-#define __LIBELF_INTERNAL__ 0
-#define __LIBELF64_LINUX 1
-#define __LIBELF_NEED_LINK_H 0
-
-#include <libelf/libelf.h>
-#include <libelf/gelf.h>
#include "base/loader/object_file.hh"
class ElfObject : public ObjectFile
{
protected:
+ uint8_t *fileTextBits; //!< Pointer to file's text segment image
+ uint8_t *fileDataBits; //!< Pointer to file's data segment image
+
+ /// Helper functions for loadGlobalSymbols() and loadLocalSymbols().
+ bool loadSomeSymbols(SymbolTable *symtab, int binding);
+
ElfObject(const std::string &_filename, int _fd,
size_t _len, uint8_t *_data,
Arch _arch, OpSys _opSys);