ElfBuilder.toSymbolShndx

private ushort toSymbolShndx(uint index) static

Convert a symbol section index to its 16-bit ELF representation.

Parameters

indexThe section index.

Returns

The index as a 16-bit unsigned integer.

Throws

Exception if the index requires the SHN_XINDEX escape.