Lines Matching refs:sortrefs
172 struct secref **sortrefs = malloc (nrefs * sizeof sortrefs[0]); in cache_sections() local
173 if (unlikely (sortrefs == NULL)) in cache_sections()
177 sortrefs[i] = refs; in cache_sections()
180 qsort (sortrefs, nrefs, sizeof sortrefs[0], &compare_secrefs); in cache_sections()
185 mod->reloc_info->refs[i].name = sortrefs[i]->name; in cache_sections()
186 mod->reloc_info->refs[i].scn = sortrefs[i]->scn; in cache_sections()
187 mod->reloc_info->refs[i].relocs = sortrefs[i]->relocs; in cache_sections()
188 mod->reloc_info->refs[i].start = sortrefs[i]->start; in cache_sections()
189 mod->reloc_info->refs[i].end = sortrefs[i]->end; in cache_sections()
190 free (sortrefs[i]); in cache_sections()
193 free (sortrefs); in cache_sections()