no segment does.
getSegmentsContainingSection
fn
SegmentTypeRange getSegmentsContainingSection(ElfFile file, ElfSection section)Get segments that fully contain a specific section.
A file-backed section is contained when its whole file range lies within the segment's file image (p_offset .. p_offset + p_filesz). A SHT_NOBITS section occupies memory only, so it is contained when its address range lies within the segment's memory image (p_vaddr .. p_vaddr + p_memsz). Segments that merely overlap the section are not returned.
Parameters
file | The ELF file. |
section | The section to find containing segments for. |
Returns
A range of the segments that fully contain the section; empty when