Struct elfio::Relocation[][src]

pub struct Relocation {
    pub offset: Elf64Addr,
    pub symbol: ElfWord,
    pub rtype: ElfWord,
    pub addend: Option<ElfSxword>,
}
Expand description

A relocation entry. The relocation contains information that describes how to modify section contents, thus allowing executable and shared object files to hold the right information for a process’s program image.

See documentation for RelocationSectionAccessor for usage example

Fields

offset: Elf64Addr

A number that determines, along with the originator’s name, the interpretation of the note contents

symbol: ElfWord

The symbol whose value should be used in the relocation

rtype: ElfWord

The relocation type. Relocation types are processor specific

addend: Option<ElfSxword>

Specifies a constant addend used to compute the value to be stored in the relocated field. The field is valid only for relocation sections having SHT_RELA type

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. 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.