paludis Version 3.0.2
The one true package mangler
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
IteratorRange< SectionIterator > sections () const noexcept
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

◆ get_arch()

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

Returns e_machine from the ELF header

◆ get_flags()

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

Returns the processor-specific flags

◆ get_os_abi()

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

Returns the OS ABI field from the ident field

◆ get_os_abi_version()

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

Returns the OS ABI Version field from the ident field

◆ get_type()

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

Returns e_type from the ELF header

◆ is_big_endian()

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: