orca-software
|
Public Member Functions | |
def | __init__ (self, num, name, value, size, type, bind, visibility, section, file=None, line=None) |
def | __repr__ (self) |
def | from_readelf_line (cls, line, ignored_types=['NOTYPE', SECTION, FILE, ignore_zero_size=True) |
def | extract_elf_symbols_info (cls, elf_file, readelf_exe='readelf') |
Public Attributes | |
num | |
name | |
value | |
size | |
type | |
bind | |
visibility | |
section | |
file | |
line | |
Static Public Attributes | |
list | pattern_fields |
string | pattern = r'^{}$'.format(r''.join(pattern_fields)) |
pattern = re.compile(pattern) | |
Represents a linker symbol in an ELF file. Attributes are as in the output of readelf command. Additionally, has optional file path and line number.
def elf-size-analyze.Symbol.extract_elf_symbols_info | ( | cls, | |
elf_file, | |||
readelf_exe = 'readelf' |
|||
) |
Uses binutils 'readelf' to find info about all symbols from an ELF file.
def elf-size-analyze.Symbol.from_readelf_line | ( | cls, | |
line, | |||
ignored_types = ['NOTYPE' , |
|||
SECTION, | |||
FILE, | |||
ignore_zero_size = True |
|||
) |
Create a Symbol from a line of `readelf -Ws` output.
|
static |