Parser for ELF build attributes held in a single compact attributes subsection.

Synopsis

Declared in <llvm/Support/ELFAttrParserCompact.h>

class ELFCompactAttrParser
    : public ELFAttributeParser

Base Classes

Name

Description

ELFAttributeParser

Abstract parser for ELF build‐attribute sections.

Member Functions

Name

Description

ELFCompactAttrParser [constructor]

Constructors

~ELFCompactAttrParser [destructor] [virtual]

Destroy the parser, discarding any pending cursor error.

getAttributeString

getAttributeString overloads

getAttributeValue

getAttributeValue overloads

integerAttribute

Parse a ULEB128 integer attribute and store it under tag.

parse [virtual]

Parse a compact ELF build‐attributes section with the given endian.

stringAttribute

Parse a null‐terminated string attribute and store it under tag.

Protected Member Functions

Name

Description

parseAttributeList

Parse a sequence of attributes occupying length bytes from the cursor.

parseIndexList

Read a ULEB128‐terminated index list into indexList.

parseStringAttribute

Parse a ULEB128 attribute whose value indexes into strings.

parseSubsection

Parse one vendor subsection of length bytes starting at the cursor.

printAttribute

Record tag / value and optionally print them with valueDesc.

setAttributeString

Store a string attribute value for later lookup by tag.

Protected Data Members

Name

Description

cursor

Read position within de.

de

Extractor over the section.

sw

Optional printer for decoded attribute details.

tagToStringMap

Map from attribute tags to display names.

Derived Classes

Name

Description

ARMAttributeParser

Parser for ARM ELF build attributes.

CSKYAttributeParser

Parser for CSKY ELF build attributes.

HexagonAttributeParser

Parser for Hexagon ELF build attributes.

MSP430AttributeParser

Parser for MSP430 ELF build attributes.

RISCVAttributeParser

Parser for RISCV ELF build attributes.

Created with MrDocs