getSectionByName

fnElfSection getSectionByName(ElfFile file, string name)

Get a section by its name.

Searches section headers for the first section with the given name.

Parameters

fileThe ELF file.
nameThe section name to search for.

Returns

The ElfSection with the matching name.

Throws

Exception if no section with the given name is found.