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