GEL  0.99
gel_load_plugin.h File Reference
#include <gel/common.h>

Go to the source code of this file.

Functions

__BEGIN_DECLS int gel_file_load_info (gel_file_t *e, vaddr_t base_vaddr)
 
int gel_file_load_data (gel_file_t *e, gel_block_t *block, raddr_t base_raddr)
 
int gel_file_load (gel_file_t *e, vaddr_t base_vaddr, raddr_t base_raddr)
 

Function Documentation

◆ gel_file_load()

int gel_file_load ( gel_file_t e,
vaddr_t  base_vaddr,
raddr_t  base_raddr 
)

Sert a charger un fichier ELF en memoire sans gerer les dependances si base_raddr est egal � NULL, alors on implante le fichier a une adresse memoire choisie par le systeme

Parameters
eLe fichier ELF
base_vaddrL'adresse de base virtuelle
base_raddradresse � partir de laquelle charger le fichier

Load an ELFfile into memory without library management.

Parameters
eELF file.
base_vaddrBase virtual address.
base_raddrDeprecated. Set it to null.
Returns
0 for success, -1 else.

◆ gel_file_load_data()

int gel_file_load_data ( gel_file_t e,
gel_block_t block,
raddr_t  base_raddr 
)

Load the data of a file from the ELF disk file in the actual memory. If the base_raddr is null, the memory is allocated by the function.

Parameters
eELF file.
blockBlock of the file to load.
base_raddrBase address of the block to load to.
Returns
0 for success, -1 else.