Interface stub (IFS) helpers for reading and writing ELF binaries.

Types

Name

Description

IFSStub

Cumulative representation of an InterFace Stub.

IFSStubTriple

Alias of IFSStub used for an alternate YAML target mapping.

IFSSymbol

A single symbol described by an InterFace Stub.

IFSTarget

Target platform information for an InterFace Stub.

Type Aliases

Name

Description

IFSArch

ELF e_machine architecture value used in IFS target descriptions.

Enums

Name

Description

IFSBitWidthType

Address bit width of an IFS target, corresponding to ELF EI_CLASS values.

IFSEndiannessType

Endianness of an IFS target, corresponding to ELF EI_DATA values.

IFSSymbolType

Symbol type in an InterFace Stub, corresponding to ELF STT_* values.

Functions

Name

Description

convertELFBitWidthToIFS

Maps an ELF EI_CLASS value to an IFSBitWidthType.

convertELFEndiannessToIFS

Maps an ELF EI_DATA value to an IFSEndiannessType.

convertELFSymbolTypeToIFS

Maps an ELF st_info symbol type to an IFSSymbolType.

convertIFSBitWidthToELF

This function convert bit width type from IFS enum to ELF format Currently, ELFCLASS32 and ELFCLASS64 are supported.

convertIFSEndiannessToELF

This function convert endianness type from IFS enum to ELF format Currently, ELFDATA2LSB and ELFDATA2MSB are supported.

convertIFSSymbolTypeToELF

This function convert symbol type from IFS enum to ELF format Currently, STT_NOTYPE, STT_OBJECT, STT_FUNC, and STT_TLS are supported.

filterIFSSyms

Filters symbols from an IFS stub by undefined status and exclude globs.

overrideIFSTarget

Override the target platform inforation in the text stub.

parseTriple

Parse llvm triple string into a IFSTarget struct.

readELFFile

Attempt to read a binary ELF file from a MemoryBuffer.

readIFSFromBuffer

Attempts to read an IFS interface file from a StringRef buffer.

stripIFSTarget

Strips target platform information from the text stub.

validateIFSTarget

Validate the target platform inforation in the text stub.

writeBinaryStub

Attempt to write a binary ELF stub.

writeIFSToOutputStream

Attempts to write an IFS interface file to a raw_ostream.

operator==

Returns true if two IFS targets describe the same platform.

operator!=

Returns true if two IFS targets describe different platforms.

Variables

Name

Description

IFSVersionCurrent

Current IFS text‐stub format version supported by this library.

Created with MrDocs