class ELFObjectFileBase

Declaration

class ELFObjectFileBase : public ObjectFile { /* full declaration omitted */ };

Description

This class is the base class for all object file types. Concrete instances of this object are created by createObjectFile, which figures out which type to create.

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:51

Inherits from: ObjectFile

Member Variables

Inherited from Binary:

protected Data

Method Overview

Inherited from ObjectFile:

Inherited from SymbolicFile:

Inherited from Binary:

Methods

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

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:63

Parameters

unsigned int Type
llvm::MemoryBufferRef Source

static bool classof(const llvm::object::Binary* v)

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:87

Parameters

const llvm::object::Binary* v

llvm::StringRef getAMDGPUCPUName() const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:60

llvm::SubtargetFeatures getARMFeatures() const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:57

virtual llvm::Error getBuildAttributes(
    llvm::ELFAttributeParser& Attributes) const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:75

Parameters

llvm::ELFAttributeParser& Attributes

virtual llvm::object::ELFObjectFileBase::
    elf_symbol_iterator_range
    getDynamicSymbolIterators() const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:80

virtual uint16_t getEMachine() const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:97

virtual uint16_t getEType() const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:95

llvm::SubtargetFeatures getFeatures() const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:89

llvm::SubtargetFeatures getMIPSFeatures() const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:56

virtual unsigned int getPlatformFlags() const

Description

Returns platform-specific object flags, if any.

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:83

std::vector<
    std::pair<Optional<DataRefImpl>, uint64_t>>
getPltAddresses() const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:100

llvm::SubtargetFeatures getRISCVFeatures() const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:58

virtual Expected<int64_t> getRelocationAddend(
    llvm::object::DataRefImpl Rel) const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:74

Parameters

llvm::object::DataRefImpl Rel

virtual uint64_t getSectionFlags(
    llvm::object::DataRefImpl Sec) const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:71

Parameters

llvm::object::DataRefImpl Sec

virtual uint64_t getSectionOffset(
    llvm::object::DataRefImpl Sec) const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:72

Parameters

llvm::object::DataRefImpl Sec

virtual uint32_t getSectionType(
    llvm::object::DataRefImpl Sec) const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:70

Parameters

llvm::object::DataRefImpl Sec

virtual uint8_t getSymbolBinding(
    llvm::object::DataRefImpl Symb) const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:66

Parameters

llvm::object::DataRefImpl Symb

virtual uint8_t getSymbolELFType(
    llvm::object::DataRefImpl Symb) const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:68

Parameters

llvm::object::DataRefImpl Symb

virtual uint8_t getSymbolOther(
    llvm::object::DataRefImpl Symb) const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:67

Parameters

llvm::object::DataRefImpl Symb

virtual uint64_t getSymbolSize(
    llvm::object::DataRefImpl Symb) const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:65

Parameters

llvm::object::DataRefImpl Symb

Expected<std::vector<BBAddrMap>> readBBAddrMap(
    Optional<unsigned int> TextSectionIndex =
        None) const

Description

Returns a vector of all BB address maps in the object file. When

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:110

Parameters

Optional<unsigned int> TextSectionIndex = None

Expected<std::vector<VersionEntry>>
readDynsymVersions() const

Description

Returns a vector containing a symbol version for each dynamic symbol. Returns an empty vector if version sections do not exist.

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:104

void setARMSubArch(llvm::Triple& TheTriple) const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:93

Parameters

llvm::Triple& TheTriple

llvm::object::ELFObjectFileBase::
    elf_symbol_iterator_range
    symbols() const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:85

Optional<llvm::StringRef> tryGetCPUName() const

Declared at: llvm/include/llvm/Object/ELFObjectFile.h:91