unsigned int get_nsegments(stab symtab,char* section_names[],int nb_sections) { unsigned int n=0; int i; for (i=0; i<nb_sections; i++) { if (is_in_symbols(section_names[i],symtab)) n++; /* si le nom section_names[i] est dans la liste des symboles du fichier ELF, incrémente */ } return n; }
unsigned int get_nsegments(stab symtab,char* section_names[],int nb_sections) { unsigned int n=0; int i; for (i=0; i<nb_sections; i++) { if (is_in_symbols(section_names[i],symtab)) n++; } return n; }