Struct goblin::elf::reloc::Reloc [] [src]

pub struct Reloc {
    pub r_offset: usize,
    pub r_addend: isize,
    pub r_sym: usize,
    pub r_type: u32,
    pub is_rela: bool,
}

A unified ELF relocation structure

Fields

Address

Addend

The index into the corresponding symbol table - either dynamic or regular

The relocation type

Whether this was constructed from a rela or rel relocation entry type

Methods

impl Reloc
[src]

[src]

[src]

Trait Implementations

impl From<Rela> for Reloc
[src]

[src]

Performs the conversion.

impl From<Rel> for Reloc
[src]

[src]

Performs the conversion.

impl From<Rela> for Reloc
[src]

[src]

Performs the conversion.

impl From<Rel> for Reloc
[src]

[src]

Performs the conversion.

impl Clone for Reloc
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Reloc
[src]

impl PartialEq for Reloc
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Default for Reloc
[src]

[src]

Returns the "default value" for a type. Read more

impl SizeWith<(bool, Ctx)> for Reloc
[src]

[src]

impl<'a> TryFromCtx<'a, (bool, Ctx)> for Reloc
[src]

[src]

impl TryIntoCtx<(bool, Ctx)> for Reloc
[src]

[src]

Writes the relocation into bytes

impl IntoCtx<(bool, Ctx)> for Reloc
[src]

[src]

Writes the relocation into bytes

impl Debug for Reloc
[src]

[src]

Formats the value using the given formatter.