getSegmentsContainingSection

fnSegmentTypeRange getSegmentsContainingSection(ElfFile file, ElfSection section)

Get segments that contain a specific section.

This function finds all program headers (segments) whose file offset ranges include the given section's file range.

Parameters

fileThe ELF file.
sectionThe section to find containing segments for.

Returns

A range of segments that contain the section.