pelfy.elf_relocation#

class pelfy.elf_relocation(file, fields, symbol_index, relocation_type, sh_info, index)#

Bases: object

A class for representing data of a relocation

file#

Points to the parent ELF file object.

index#

Absolut index of the relocation in the associated relocation section

symbol#

Symbol to relocate

type#

Type of the relocation

calculation#

Description of the relocation calculation

bits#

number ob bits to patch by the relocation

target_section#

Pointing to the section where this relocation applies to

fields#

All relocation header fields as dict