Lines Matching refs:section
30 def segment_matches_section(segment, section): argument
36 sh_size = (section.header.sh_size + 0x3) & ~3 # pad length of ELF sections
37 return section.header.sh_addr == segment.addr and sh_size == len(segment.data)
71 section = e.get_section_by_name(section_name)
72 assert section, f"{section_name} should be in the ELF"
73 sh_addr = section.header.sh_addr
74 data = section.data()
91 section = e.get_section_by_name(section_name)
92 assert section, f"{section_name} should be in the ELF"
93 sh_addr = section.header.sh_addr
94 data = section.data()
291 for section in [".iram1.text", ".iram_pool_1.text", ".dram0.rodata"]:
292 self.assertImageContainsSection(image, ELF, section)
302 for section in [
308 self.assertImageContainsSection(image, ELF, section)