decodeRelocation

fnRelocation decodeRelocation(const(ubyte)[] data, size_t offset, ElfClass cls, ElfEndian endian)

Decode a relocation entry (without addend) from raw ELF file bytes.

Parameters

dataRaw relocation table bytes.
offsetOffset of the entry within data.
clsELF class of the file (selects the wire layout).
endianByte order used by the file.

Returns

The decoded generic relocation.

Throws

Exception if the entry does not fit in data.