paludis  Version 2.6.0
Public Types | Public Member Functions | Static Public Member Functions | List of all members
paludis::ElfObject< ElfType_ > Class Template Reference

Public Types

typedef ElfObjectSectionIteratorTag< ElfType_ > SectionIteratorTag
 
typedef paludis::WrappedForwardIterator< SectionIteratorTag, Section< ElfType_ > > SectionIterator
 

Public Member Functions

 ElfObject (std::istream &stream)
 
unsigned int get_type () const
 
unsigned int get_arch () const
 
unsigned char get_os_abi () const
 
unsigned char get_os_abi_version () const
 
unsigned int get_flags () const
 
unsigned int is_big_endian () const
 
unsigned int get_number_of_sections () const
 
SectionIterator section_begin () const
 
SectionIterator section_end () const
 
SectionIterator get_section_by_index (unsigned int index) const
 
void resolve_all_strings ()
 

Static Public Member Functions

static bool is_valid_elf (std::istream &stream)
 

Member Function Documentation

template<typename ElfType_ >
unsigned int paludis::ElfObject< ElfType_ >::get_arch ( ) const
inline

Returns e_machine from the ELF header

template<typename ElfType_ >
unsigned int paludis::ElfObject< ElfType_ >::get_flags ( ) const
inline

Returns the processor-specific flags

template<typename ElfType_ >
unsigned char paludis::ElfObject< ElfType_ >::get_os_abi ( ) const
inline

Returns the OS ABI field from the ident field

template<typename ElfType_ >
unsigned char paludis::ElfObject< ElfType_ >::get_os_abi_version ( ) const
inline

Returns the OS ABI Version field from the ident field

template<typename ElfType_ >
unsigned int paludis::ElfObject< ElfType_ >::get_type ( ) const
inline

Returns e_type from the ELF header

template<typename ElfType_ >
unsigned int paludis::ElfObject< ElfType_ >::is_big_endian ( ) const
inline

Returns whether this ELF file uses big-endian or little-endian Please note: If you didn't use is_valid_elf(...) to check whether this is an ELF object, this might be wrong


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