unsigned int i;
Elf32_Sym *crt_sym;
- for (i = 1; i < module->symtable_size; i++)
+ for (i = 1; i < module->symtable_size/module->syment_size; i++)
{
crt_sym = (Elf32_Sym*)(module->sym_table + i*module->syment_size);
int strong_count;
int weak_count;
- for(i = 1; i < module->symtable_size; i++)
+ for (i = 1; i < module->symtable_size/module->syment_size; i++)
{
crt_sym = symbol_get_entry(module, i);
crt_name = module->str_table + crt_sym->st_name;
unsigned int i;
Elf32_Sym *crt_sym;
- for (i=1; i < module->symtable_size; i++)
+ for (i = 1; i < module->symtable_size/module->syment_size; i++)
{
crt_sym = symbol_get_entry(module, i);
if (strcmp(name, module->str_table + crt_sym->st_name) == 0)