[][src]Module goblin::elf::reloc::reloc32

Re-exports

pub use crate::elf::reloc::*;

Structs

Rel

Relocation without an addend

Rela

Relocation with an explicit addend

Constants

SIZEOF_REL
SIZEOF_RELA

Functions

from_fd
from_raw_rel

Gets the rel entries given a rel pointer and the size of the rel section in the binary, in bytes. Assumes the pointer is valid and can safely return a slice of memory pointing to the rels because:

from_raw_rela

Gets the rela entries given a rela pointer and the size of the rela section in the binary, in bytes. Assumes the pointer is valid and can safely return a slice of memory pointing to the relas because:

r_info
r_sym
r_type