Searched refs:sortrefs (Results 1 – 2 of 2) sorted by relevance
172 struct secref **sortrefs = malloc (nrefs * sizeof sortrefs[0]); in cache_sections() local173 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()[all …]
1103 * derelocate.c (cache_sections): Free sortrefs.1178 sortrefs with malloc, not alloca. Always free them on return.