pelfy.elf_section#

class pelfy.elf_section(file, fields, name, index)#

Bases: object

A class for representing data of an ELF section

file#

Points to the parent ELF file object.

name#

Name of the section

index#

Absolut index of the section

type#

Type of the section

description#

Description of the section type

fields#

All symbol header fields as dict

property data: bytes#

Returns the binary data from the section. The offset in the ELF file is given by: section.sh_offset

property data_hex: str#

Returns the binary data from the section as hex string.

property symbols: symbol_list#

All ELF symbols associated with this section