Declaration¶
Source position: elfreader.pp line 43
type
TElfResourceReader = class(TAbstractResourceReader)
protected
function GetExtensions : string;
function GetDescription : string;
procedure Load;
function CheckMagic : Boolean;
public
constructor Create;
destructor Destroy;
property MachineType: TElfMachineType; {r}
end;
Inheritance¶
Description¶
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.
Remark:
This reader can't read ELF files without section headers. These are however very rare.
Properties¶
| Member | Visibility | Description |
|---|---|---|
| MachineType read only | public | The machine type of the object file |
Methods¶
| Member | Visibility | Description |
|---|---|---|
| CheckMagic | protected | |
| Create | public | |
| Destroy | public | |
| GetDescription | protected | |
| GetExtensions | protected | |
| Load | protected |
See also¶
| Name | Description |
|---|---|
| TElfResourceReader.MachineType | The machine type of the object file |
| TAbstractResourceReader | Base abstract resource reader class |
| TElfResourceWriter | ELF resource writer |
| Format of resources in object files | Format of resources in object files |