Lines Matching defs:cache
41 We update the section header in place to cache the result. */
83 load address (or unloadedness). This serves as a cache,
108 #define RELOC_SYMTAB_CACHE(cache) \
109 struct reloc_symtab_cache cache = \
116 Elf *relocated, struct reloc_symtab_cache *cache,
119 if (cache->symdata == NULL)
146 cache->symelf = relocated;
147 cache->symdata = elf_getdata (scn, NULL);
148 cache->strtabndx = shdr->sh_link;
149 if (unlikely (cache->symdata == NULL))
153 cache->symxndxdata = elf_getdata (scn, NULL);
154 if (unlikely (cache->symxndxdata == NULL))
159 if (cache->symdata != NULL && cache->symxndxdata != NULL)
163 if (cache->symdata == NULL)
175 cache->symelf = mod->symfile->elf;
176 cache->symdata = mod->symdata;
177 cache->symxndxdata = mod->symxndxdata;
178 cache->symstrdata = mod->symstrdata;
182 if (unlikely (gelf_getsymshndx (cache->symdata, cache->symxndxdata,
200 return __libdwfl_relocate_value (mod, cache->symelf, &cache->symshstrndx,