retdec
elf_wrapper.h
Go to the documentation of this file.
1 
7 #ifndef FILEINFO_FILE_WRAPPER_ELF_WRAPPER_H
8 #define FILEINFO_FILE_WRAPPER_ELF_WRAPPER_H
9 
11 
12 namespace retdec {
13 namespace fileinfo {
14 
19 {
20  public:
21  ElfWrapper(std::string pathToFile, retdec::fileformat::LoadFlags loadFlags);
22 
25  ELFIO::segment* getFileSegment(unsigned long long segIndex) const;
26  ELFIO::section* getFileSection(unsigned long long secIndex) const;
27  ELFIO::symbol_section_accessor* getSymbolTable(unsigned long long secIndex) const;
28  ELFIO::relocation_section_accessor* getRelocationTable(unsigned long long secIndex) const;
30 };
31 
32 } // namespace fileinfo
33 } // namespace retdec
34 
35 #endif
Definition: elf_format.h:24
LoadFlags loadFlags
load flags for configurable file loading
Definition: file_format.h:51
Definition: elf_wrapper.h:19
ELFIO::symbol_section_accessor * getSymbolTable(unsigned long long secIndex) const
Definition: elf_wrapper.cpp:58
ELFIO::segment * getFileSegment(unsigned long long segIndex) const
Definition: elf_wrapper.cpp:31
ElfWrapper(std::string pathToFile, retdec::fileformat::LoadFlags loadFlags)
Definition: elf_wrapper.cpp:19
ELFIO::relocation_section_accessor * getRelocationTable(unsigned long long secIndex) const
Definition: elf_wrapper.cpp:81
ELFIO::section * getFileSection(unsigned long long secIndex) const
Definition: elf_wrapper.cpp:43
Definition of ElfFormat class.
LoadFlags
Definition: fftypes.h:69
Definition: archive_wrapper.h:19