This module provides basic functions to access an ELF file.
And some generic facilities:
This module contains also facilities to manager errors and warnings:
◆ GEL_OPEN_NOPLUGINS
| GEL_OPEN_NOPLUGINS 0x00000001 |
If passed in the gel_open() flags, informs that no plug-in must be opened.
◆ gel_file_t
Handle to an opened ELF file and pointer to the public fields. It is usually obtained by a call to the function gel_open().
◆ gel_close()
Close an opened file and relase of the allocated resources.
- Parameters
-
◆ gel_open()
| gel_file_t* gel_open |
( |
const char * |
filename, |
|
|
const char * |
plugpath, |
|
|
int |
flags |
|
) |
| |
Open an ELF file.
- Parameters
-
| filename | Path to the file. |
| plugpath | Alternate GEL plugin path (NULL for default plugins). |
| flags | Flags (see GEL_OPEN_NOPLUGINS). |
- Returns
- File handle or null if there is an error.
◆ gel_strtab()
Get a string from a string table.
- Parameters
-
| f | Current ELF file. |
| sect | String table index. |
| off | String offset. |
- Returns
- String pointer or null (offset out of the string table).