encodeRelocation

fnvoid encodeRelocation(ref const Relocation rel, ubyte[] data, size_t offset, ElfClass cls, ElfEndian endian)

Encode a relocation entry (without addend) into target ELF wire bytes.

Parameters

relThe generic relocation to encode.
dataDestination buffer.
offsetStarting offset in data.
clsTarget ELF class (32-bit or 64-bit).
endianTarget byte order.