Main Page   Modules   Data Structures   File List   Data Fields   Examples  

Symbol Table
[Section Headers]


Modules

Symbols

Functions

ELF_SPEC_HEADERmelf_symbolTableCreate (MELF *melf, const char *name)
Elf32_Sym * melf_symbolTableAddSymbol (MELF *melf, ELF_SPEC_HEADER *symTable, const char *name)
Elf32_Sym * melf_symbolTableEnum (MELF *melf, ELF_SPEC_HEADER *symTable, unsigned long index)
unsigned long melf_symbolTableRemoveSymbol (MELF *melf, ELF_SPEC_HEADER *symTable, Elf32_Sym *symbol)

Function Documentation

Elf32_Sym* melf_symbolTableAddSymbol MELF   melf,
ELF_SPEC_HEADER   symTable,
const char *    name
 

Adds a new symbol with the given name to the symbol table.

Parameters:
melf [in] The melf context.
symTable [in] The symbol table to operate on.
name [in] The name of the symbol. This can be NULL.
Examples:
new.c.

ELF_SPEC_HEADER* melf_symbolTableCreate MELF   melf,
const char *    name
 

Creates a symbol table with the specified name.

Parameters:
melf [in] The melf context.
name [in] The name of the symbol table. This can be NULL.
Returns:
On success, an initialized symbol table section is returned. Otherwise, NULL is returned.
Examples:
new.c.

Elf32_Sym* melf_symbolTableEnum MELF   melf,
ELF_SPEC_HEADER   symTable,
unsigned long    index
 

Enumerates the symbol table at the given index. Indexes start at 0.

Parameters:
melf [in] The melf context.
symTable [in] The symbol table to operate on.
index [in] The index to enumerate at.
Returns:
If the index is valid, a valid pointer to a symbol will be returned. Otherwise, NULL is returned.

unsigned long melf_symbolTableRemoveSymbol MELF   melf,
ELF_SPEC_HEADER   symTable,
Elf32_Sym *    symbol
 

Removes a given symbol.

Parameters:
melf [in] The melf context.
symTable [in] The symbol table to operate on.
symbol [in] The symbol to remove.
Returns:
1 on success.


Generated on Tue Jun 3 00:01:35 2003 for libmelf by doxygen1.3-rc3