pub struct GnuHashTable<'data, Elf: FileHeader> { /* private fields */ }
Expand description

A GNU symbol hash table in an ELF file.

Implementations

Parse a GNU hash table.

data should be from a SHT_GNU_HASH section, or from a segment pointed to via the DT_GNU_HASH entry.

The header is read at offset 0 in the given data.

The header does not contain a length field, and so all of data will be used as the hash table values. It does not matter if this is longer than needed, and this will often the case when accessing the hash table via the DT_GNU_HASH entry.

Return the symbol table index of the first symbol in the hash table.

Determine the symbol table length by finding the last entry in the hash table.

Returns None if the hash table is empty or invalid.

Use the hash table to find the symbol table entry with the given name, hash, and version.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.