toElf32

fnelf32.FileHeader toElf32(ref const FileHeader ghdr) pure @safe

Convert GELF file header to ELF32 file header.

Parameters

ghdrThe GELF header to convert.

Returns

The equivalent ELF32 header.

Throws

Exception if values don't fit in 32-bit.
fnelf32.SectionHeader toElf32(ref const SectionHeader gshdr) pure @safe

Convert GELF section header to ELF32 section header.

Parameters

gshdrThe GELF section header to convert.

Returns

The equivalent ELF32 section header.

Throws

Exception if values don't fit in 32-bit.
fnelf32.ProgramHeader toElf32(ref const ProgramHeader gphdr) pure @safe

Convert GELF program header to ELF32 program header.

Parameters

gphdrThe GELF program header to convert.

Returns

The equivalent ELF32 program header.

Throws

Exception if values don't fit in 32-bit.
fnelf32.SymbolTableEntry toElf32(ref const SymbolTableEntry gsym) pure @safe

Convert GELF symbol to ELF32 symbol.

Parameters

gsymThe GELF symbol to convert.

Returns

The equivalent ELF32 symbol.

Throws

Exception if values don't fit in 32-bit.
fnelf32.Relocation toElf32(ref const Relocation grel) pure @safe

Convert GELF relocation to ELF32 relocation.

Parameters

grelThe GELF relocation to convert.

Returns

The equivalent ELF32 relocation.

Throws

Exception if values don't fit in 32-bit.
fnelf32.RelocationWithAddend toElf32(ref const RelocationWithAddend grela) pure @safe

Convert GELF relocation with addend to ELF32 relocation with addend.

Parameters

grelaThe GELF relocation with addend to convert.

Returns

The equivalent ELF32 relocation with addend.

Throws

Exception if values don't fit in 32-bit.
fnelf32.DynamicEntry toElf32(ref const DynamicEntry gdyn) pure @safe

Convert GELF dynamic entry to ELF32 dynamic entry.

Parameters

gdynThe GELF dynamic entry to convert.

Returns

The equivalent ELF32 dynamic entry.

Throws

Exception if values don't fit in 32-bit.