Struct goblin::mach::relocation::RelocationInfo[][src]

#[repr(C)]
pub struct RelocationInfo { pub r_address: i32, pub r_info: u32, }

Fields

r_address: i32

Offset in the section to what is being relocated

r_info: u32

Contains all of the relocation info as a bitfield. r_symbolnum, 24 bits, r_pcrel 1 bit, r_length 2 bits, r_extern 1 bit, r_type 4 bits

Implementations

Symbol index if r_extern == 1 or section ordinal if r_extern == 0. In bits :24

Was relocated pc relative already, 1 bit

The length of the relocation, 0=byte, 1=word, 2=long, 3=quad, 2 bits

Does not include value of sym referenced, 1 bit

Ff not 0, machine specific relocation type, in bits :4

If true, this relocation is for a symbol; if false, or a section ordinal otherwise

If true, this is a PIC relocation

Returns a string representation of this relocation, given the machine cputype

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.