GEL  0.99
ELF File

Data Structures

struct  gel_file_info_t
 

Macros

#define GEL_OPEN_NOPLUGINS   0x00000001
 

Typedefs

typedef struct gel_file_info_t gel_file_t
 

Functions

gel_file_tgel_open (const char *filename, const char *plugpath, int flags)
 
void gel_close (gel_file_t *file)
 
char * gel_strtab (gel_file_t *f, int sect, u32_t off)
 

Detailed Description

#include <gel/gel.h>

This module provides basic functions to access an ELF file.

And some generic facilities:

This module contains also facilities to manager errors and warnings:

Macro Definition Documentation

◆ GEL_OPEN_NOPLUGINS

GEL_OPEN_NOPLUGINS   0x00000001

If passed in the gel_open() flags, informs that no plug-in must be opened.

Typedef Documentation

◆ 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().

Function Documentation

◆ gel_close()

void gel_close ( gel_file_t file)

Close an opened file and relase of the allocated resources.

Parameters
fileFile descriptor.

◆ gel_open()

gel_file_t* gel_open ( const char *  filename,
const char *  plugpath,
int  flags 
)

Open an ELF file.

Parameters
filenamePath to the file.
plugpathAlternate GEL plugin path (NULL for default plugins).
flagsFlags (see GEL_OPEN_NOPLUGINS).
Returns
File handle or null if there is an error.

◆ gel_strtab()

char* gel_strtab ( gel_file_t f,
int  sect,
u32_t  off 
)

Get a string from a string table.

Parameters
fCurrent ELF file.
sectString table index.
offString offset.
Returns
String pointer or null (offset out of the string table).