Contains a resource reader for ELF files

This unit contains , a TAbstractResourceReader descendant that is able to read ELF object files containing resources.

Adding this unit to a program's uses clause registers class with TResources.

Base class for elf resource reader-related exceptions Unknown ELF class error

This exception is raised by Load method of when class field of ELF header is neither ELFCLASS32 nor ELFCLASS64.

Unknown ELF version error

This exception is raised by Load method of when version field of ELF header is not 1.

No section headers error

This exception is raised by Load method of when no section headers are found.

No string table error

This exception is raised by Load method of when no ELF string table is found.

ELF resource reader

This class provides a reader for ELF object files and images containing resources.

ELF is the file format used by unices and other operating systems for object files and image files (executables, dynamic libraries and so on). Free Pascal can store resources in ELF files in its own format.

After an object file has been read, MachineType property holds the machine type the object file was built for.

This reader can't read ELF files without section headers. These are however very rare.
TAbstractResourceReader TElfResourceWriter
The machine type of the object file

This property holds the machine type of the object file that has been read.

Obviously, this property is meaningful only after an object file has been read.
TElfMachineType