LLVM  3.7.0
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
llvm::object::ELFObjectFileBase Class Referenceabstract

#include <ELFObjectFile.h>

Inheritance diagram for llvm::object::ELFObjectFileBase:
[legend]
Collaboration diagram for llvm::object::ELFObjectFileBase:
[legend]

Public Types

typedef iterator_range
< elf_symbol_iterator
elf_symbol_iterator_range
 
- Public Types inherited from llvm::object::ObjectFile
typedef iterator_range
< symbol_iterator
symbol_iterator_range
 
typedef iterator_range
< section_iterator
section_iterator_range
 
- Public Types inherited from llvm::object::SymbolicFile
typedef iterator_range
< basic_symbol_iterator
basic_symbol_iterator_range
 

Public Member Functions

virtual elf_symbol_iterator_range getDynamicSymbolIterators () const =0
 
elf_symbol_iterator_range symbols () const
 
- Public Member Functions inherited from llvm::object::ObjectFile
uint64_t getCommonSymbolSize (DataRefImpl Symb) const
 
symbol_iterator_range symbols () const
 
virtual section_iterator section_begin () const =0
 
virtual section_iterator section_end () const =0
 
section_iterator_range sections () const
 
virtual uint8_t getBytesInAddress () const =0
 The number of bytes used to represent an address in this object file format. More...
 
virtual StringRef getFileFormatName () const =0
 
virtual unsigned getArch () const =0
 
virtual std::error_code getPlatformFlags (unsigned &Result) const
 Returns platform-specific object flags, if any. More...
 
virtual bool isRelocatableObject () const =0
 True if this is a relocatable object (.o/.obj). More...
 
- Public Member Functions inherited from llvm::object::SymbolicFile
 ~SymbolicFile () override
 
 SymbolicFile (unsigned int Type, MemoryBufferRef Source)
 
virtual void moveSymbolNext (DataRefImpl &Symb) const =0
 
virtual uint32_t getSymbolFlags (DataRefImpl Symb) const =0
 
virtual basic_symbol_iterator symbol_begin_impl () const =0
 
virtual basic_symbol_iterator symbol_end_impl () const =0
 
basic_symbol_iterator symbol_begin () const
 
basic_symbol_iterator symbol_end () const
 
basic_symbol_iterator_range symbols () const
 
- Public Member Functions inherited from llvm::object::Binary
virtual ~Binary ()
 
StringRef getData () const
 
StringRef getFileName () const
 
MemoryBufferRef getMemoryBufferRef () const
 
unsigned int getType () const
 
bool isObject () const
 
bool isSymbolic () const
 
bool isArchive () const
 
bool isMachOUniversalBinary () const
 
bool isELF () const
 
bool isMachO () const
 
bool isCOFF () const
 
bool isIR () const
 
bool isLittleEndian () const
 

Static Public Member Functions

static bool classof (const Binary *v)
 
- Static Public Member Functions inherited from llvm::object::ObjectFile
static ErrorOr< OwningBinary
< ObjectFile > > 
createObjectFile (StringRef ObjectPath)
 Create ObjectFile from path. More...
 
static ErrorOr
< std::unique_ptr< ObjectFile > > 
createObjectFile (MemoryBufferRef Object, sys::fs::file_magic Type)
 
static ErrorOr
< std::unique_ptr< ObjectFile > > 
createObjectFile (MemoryBufferRef Object)
 
static bool classof (const Binary *v)
 
static ErrorOr
< std::unique_ptr
< COFFObjectFile > > 
createCOFFObjectFile (MemoryBufferRef Object)
 
static ErrorOr
< std::unique_ptr< ObjectFile > > 
createELFObjectFile (MemoryBufferRef Object)
 
static ErrorOr
< std::unique_ptr
< MachOObjectFile > > 
createMachOObjectFile (MemoryBufferRef Object)
 
- Static Public Member Functions inherited from llvm::object::SymbolicFile
static ErrorOr
< std::unique_ptr
< SymbolicFile > > 
createSymbolicFile (MemoryBufferRef Object, sys::fs::file_magic Type, LLVMContext *Context)
 
static ErrorOr
< std::unique_ptr
< SymbolicFile > > 
createSymbolicFile (MemoryBufferRef Object)
 
static ErrorOr< OwningBinary
< SymbolicFile > > 
createSymbolicFile (StringRef ObjectPath)
 
static bool classof (const Binary *v)
 

Protected Member Functions

 ELFObjectFileBase (unsigned int Type, MemoryBufferRef Source)
 
virtual uint64_t getSymbolSize (DataRefImpl Symb) const =0
 
virtual uint8_t getSymbolOther (DataRefImpl Symb) const =0
 
virtual uint8_t getSymbolELFType (DataRefImpl Symb) const =0
 
virtual uint32_t getSectionType (DataRefImpl Sec) const =0
 
virtual uint64_t getSectionFlags (DataRefImpl Sec) const =0
 
virtual ErrorOr< int64_t > getRelocationAddend (DataRefImpl Rel) const =0
 
- Protected Member Functions inherited from llvm::object::ObjectFile
 ObjectFile (unsigned int Type, MemoryBufferRef Source)
 
const uint8_t * base () const
 
virtual ErrorOr< StringRefgetSymbolName (DataRefImpl Symb) const =0
 
std::error_code printSymbolName (raw_ostream &OS, DataRefImpl Symb) const override
 
virtual ErrorOr< uint64_t > getSymbolAddress (DataRefImpl Symb) const =0
 
virtual uint64_t getSymbolValueImpl (DataRefImpl Symb) const =0
 
virtual uint32_t getSymbolAlignment (DataRefImpl Symb) const
 
virtual uint64_t getCommonSymbolSizeImpl (DataRefImpl Symb) const =0
 
virtual SymbolRef::Type getSymbolType (DataRefImpl Symb) const =0
 
virtual std::error_code getSymbolSection (DataRefImpl Symb, section_iterator &Res) const =0
 
virtual void moveSectionNext (DataRefImpl &Sec) const =0
 
virtual std::error_code getSectionName (DataRefImpl Sec, StringRef &Res) const =0
 
virtual uint64_t getSectionAddress (DataRefImpl Sec) const =0
 
virtual uint64_t getSectionSize (DataRefImpl Sec) const =0
 
virtual std::error_code getSectionContents (DataRefImpl Sec, StringRef &Res) const =0
 
virtual uint64_t getSectionAlignment (DataRefImpl Sec) const =0
 
virtual bool isSectionText (DataRefImpl Sec) const =0
 
virtual bool isSectionData (DataRefImpl Sec) const =0
 
virtual bool isSectionBSS (DataRefImpl Sec) const =0
 
virtual bool isSectionVirtual (DataRefImpl Sec) const =0
 
virtual relocation_iterator section_rel_begin (DataRefImpl Sec) const =0
 
virtual relocation_iterator section_rel_end (DataRefImpl Sec) const =0
 
virtual section_iterator getRelocatedSection (DataRefImpl Sec) const
 
virtual void moveRelocationNext (DataRefImpl &Rel) const =0
 
virtual uint64_t getRelocationOffset (DataRefImpl Rel) const =0
 
virtual symbol_iterator getRelocationSymbol (DataRefImpl Rel) const =0
 
virtual uint64_t getRelocationType (DataRefImpl Rel) const =0
 
virtual void getRelocationTypeName (DataRefImpl Rel, SmallVectorImpl< char > &Result) const =0
 
uint64_t getSymbolValue (DataRefImpl Symb) const
 
- Protected Member Functions inherited from llvm::object::Binary
 Binary (unsigned int Type, MemoryBufferRef Source)
 

Friends

class ELFSymbolRef
 
class ELFSectionRef
 
class ELFRelocationRef
 

Additional Inherited Members

- Protected Types inherited from llvm::object::Binary
enum  {
  ID_Archive, ID_MachOUniversalBinary, ID_IR, ID_StartObjects,
  ID_COFF, ID_ELF32L, ID_ELF32B, ID_ELF64L,
  ID_ELF64B, ID_MachO32L, ID_MachO32B, ID_MachO64L,
  ID_MachO64B, ID_EndObjects
}
 
- Static Protected Member Functions inherited from llvm::object::Binary
static unsigned int getELFType (bool isLE, bool is64Bits)
 
static unsigned int getMachOType (bool isLE, bool is64Bits)
 
- Protected Attributes inherited from llvm::object::Binary
MemoryBufferRef Data
 

Detailed Description

Definition at line 42 of file ELFObjectFile.h.

Member Typedef Documentation

Definition at line 60 of file ELFObjectFile.h.

Constructor & Destructor Documentation

llvm::ELFObjectFileBase::ELFObjectFileBase ( unsigned int  Type,
MemoryBufferRef  Source 
)
protected

Definition at line 20 of file ELFObjectFile.cpp.

Member Function Documentation

static bool llvm::object::ELFObjectFileBase::classof ( const Binary v)
inlinestatic

Definition at line 65 of file ELFObjectFile.h.

References llvm::object::Binary::isELF().

virtual elf_symbol_iterator_range llvm::object::ELFObjectFileBase::getDynamicSymbolIterators ( ) const
pure virtual
virtual ErrorOr<int64_t> llvm::object::ELFObjectFileBase::getRelocationAddend ( DataRefImpl  Rel) const
protectedpure virtual
virtual uint64_t llvm::object::ELFObjectFileBase::getSectionFlags ( DataRefImpl  Sec) const
protectedpure virtual
virtual uint32_t llvm::object::ELFObjectFileBase::getSectionType ( DataRefImpl  Sec) const
protectedpure virtual
virtual uint8_t llvm::object::ELFObjectFileBase::getSymbolELFType ( DataRefImpl  Symb) const
protectedpure virtual
virtual uint8_t llvm::object::ELFObjectFileBase::getSymbolOther ( DataRefImpl  Symb) const
protectedpure virtual
virtual uint64_t llvm::object::ELFObjectFileBase::getSymbolSize ( DataRefImpl  Symb) const
protectedpure virtual
ELFObjectFileBase::elf_symbol_iterator_range llvm::object::ELFObjectFileBase::symbols ( ) const
inline

Friends And Related Function Documentation

friend class ELFRelocationRef
friend

Definition at line 45 of file ELFObjectFile.h.

friend class ELFSectionRef
friend

Definition at line 44 of file ELFObjectFile.h.

friend class ELFSymbolRef
friend

Definition at line 43 of file ELFObjectFile.h.


The documentation for this class was generated from the following files: