version 1.5, 2004/03/16 01:11:09 |
version 1.6, 2006/04/02 21:38:56 |
|
|
* Find space for a table matching ELF section indices to a.out |
* Find space for a table matching ELF section indices to a.out |
* symbol types. |
* symbol types. |
*/ |
*/ |
symTypeTable = (int *) malloc(ex.e_shnum * sizeof(int)); |
symTypeTable = calloc(ex.e_shnum, sizeof(int)); |
if (!symTypeTable) { |
if (!symTypeTable) { |
fprintf(stderr, "symTypeTable: can't allocate.\n"); |
fprintf(stderr, "symTypeTable: can't allocate.\n"); |
exit(1); |
exit(1); |
} |
} |
memset(symTypeTable, 0, ex.e_shnum * sizeof(int)); |
|
|
|
/* |
/* |
* Look for the symbol table and string table... Also map section |
* Look for the symbol table and string table... Also map section |