ElfRelocationTable.getRelocationsForSection

RelocationRange getRelocationsForSection(size_t sectionIndex)

Get relocations that apply to a specific section.

Filters based on the relocation section's sh_info field, which specifies the section index the relocations apply to.

Parameters

sectionIndexThe section index to filter for.

Returns

A range of relocations for the specified section, or an empty

range if this relocation table does not apply to that section.