sectionContainedInSegment

private fnbool sectionContainedInSegment(gelf.ProgramHeader phdr, gelf.SectionHeader shdr)

Check whether a section is fully contained in a program header.

Parameters

phdrThe program header.
shdrThe section header.

Returns

true when the section lies entirely within the segment (file image

for file-backed sections, memory image for SHT_NOBITS).