ROSE  0.9.9.139
BinaryLoaderElfObj.h
1 #ifndef ROSE_BinaryAnalysis_BinaryLoaderElfObj_H
2 #define ROSE_BinaryAnalysis_BinaryLoaderElfObj_H
3 
4 #include "BinaryLoaderElf.h"
5 
6 namespace Rose {
7 namespace BinaryAnalysis {
8 
14 public:
16 
18  : BinaryLoaderElf(other)
19  {}
20 
21  virtual ~BinaryLoaderElfObj() {}
22 
23  /* Override virtual methods from BinaryLoader */
24  virtual BinaryLoaderElfObj *clone() const {
25  return new BinaryLoaderElfObj(*this);
26  }
27 
28  virtual bool can_load(SgAsmGenericHeader*) const;
29 
31  virtual SgAsmGenericSectionPtrList get_remap_sections(SgAsmGenericHeader*);
32 
35  rose_addr_t *malign_lo, rose_addr_t *malign_hi,
36  rose_addr_t *va, rose_addr_t *mem_size,
37  rose_addr_t *offset, rose_addr_t *file_size, bool *map_private,
38  rose_addr_t *va_offset, bool *anon_lo, bool *anon_hi,
39  ConflictResolution *resolve);
40 };
41 
42 } // namespace
43 } // namespace
44 
45 #endif /*ROSE_BINARYLOADERELFOBJ_H*/
virtual bool can_load(SgAsmGenericHeader *) const
Capability query.
Contiguous region of a file.
A loader suitable for ELF object files.
Main namespace for the ROSE library.
virtual SgAsmGenericSectionPtrList get_remap_sections(SgAsmGenericHeader *)
Same as super class but appends those sections that are not mapped but which contain code...
Base class for container file headers.
virtual BinaryLoaderElfObj * clone() const
Copy constructor.
MappingContribution
Describes how a section contributes to the overall memory map.
Definition: BinaryLoader.h:55
virtual MappingContribution align_values(SgAsmGenericSection *, const MemoryMap::Ptr &, rose_addr_t *malign_lo, rose_addr_t *malign_hi, rose_addr_t *va, rose_addr_t *mem_size, rose_addr_t *offset, rose_addr_t *file_size, bool *map_private, rose_addr_t *va_offset, bool *anon_lo, bool *anon_hi, ConflictResolution *resolve)
Same as super class but relaxes alignment constraints for sections that are ELF Sections but not ELF ...
ConflictResolution
Describes how conflicts are resolved when mapping a section.
Definition: BinaryLoader.h:63