Lines Matching refs:elf
9 from elftools.elf.elffile import ELFFile
10 from elftools.elf.sections import SymbolTableSection
21 def resolve_symbol(elf, name): argument
22 for section in elf.iter_sections():
30 def hash_range(h, elf, start, end): argument
32 start_addr = resolve_symbol(elf, start)
33 end_addr = resolve_symbol(elf, end)
38 for segment in elf.iter_segments():
46 def hash_section(h, elf, name): argument
48 s = elf.get_section_by_name(name)
68 elf = ELFFile(f)
70 hash_range(h, elf, '__text_start', '__text_data_start')
71 hash_range(h, elf, '__text_data_end', '__text_end')
72 hash_section(h, elf, '.text_init')
73 hash_section(h, elf, '.text_pageable')
74 hash_section(h, elf, '.rodata')
75 hash_section(h, elf, '.rodata_init')
76 hash_section(h, elf, '.rodata_pageable')