GEL  0.99
gel_load.c File Reference
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <gel/image.h>
#include <stdarg.h>
#include <gel/error.h>
#include "gel_private.h"
#include <gel/gel_elf.h>
#include "gel_mem.h"

Functions

int gel_hash_syms (gel_file_t *f, gel_hash_t hash, int no_local)
 
gel_sym_tgel_find_glob_symbol (gel_image_t *im, char *name)
 
gel_enum_tgel_enum_glob_symbol (gel_image_t *im)
 

Function Documentation

◆ gel_enum_glob_symbol()

gel_enum_t* gel_enum_glob_symbol ( gel_image_t im)

Return an enumeration of the global symbols of the image. Free the returned enumeration with enu_free().

Parameters
imImage to work on.
Returns
Enumeration or null if there is an error (error code in gel_errno).

◆ gel_find_glob_symbol()

gel_sym_t* gel_find_glob_symbol ( gel_image_t im,
char *  name 
)

Get a global symbol in the image from its name.

Parameters
imImage descriptor..
nameSymbol name.
Returns
Symbol descriptor or null if it is not found..

◆ gel_hash_syms()

int gel_hash_syms ( gel_file_t f,
gel_hash_t  hash,
int  no_local 
)

Fonction servant a entrer les symboles du fichier f dans la table de hashage.

Parameters
fLe fichier
hashLa table de hashage
no_localSi vrai, le container est un bloc d'image et on ne regarde pas les symboles locaux. Sinon le container est un fichier et on regarde les symboles locaux.
Returns
Code d'erreur (0 pour succes ou -1 pour erreur)