Lines Matching defs:scn_cache
166 struct elf_section *scn_cache)
172 if (scn_cache[ehdr->e_shstrndx].c_data == NULL) {
173 if ((scn_cache[ehdr->e_shstrndx].c_data
179 strtab = scn_cache[ehdr->e_shstrndx].c_data;
185 scn_cache[cnt].c_data = read_section_data(fd, ehdr, cursct);
186 return &scn_cache[cnt];
199 struct elf_section *scn_cache)
203 shbuf, scn_cache);
263 struct elf_section *scn_cache)
265 fd = open_file_from_debug_link(name, fd, ehdr, shbuf, scn_cache);
329 struct elf_section *scn_cache = NULL;
352 scn_cache = (struct elf_section *)
354 if (scn_cache == NULL) {
359 scn_cache[cnt].c_shdr = cursct;
362 if ( (scn_cache[cnt].c_data = read_section_data(fd, &ehdr, cursct)) == NULL) {
374 ELF_SHDR *shdr = scn_cache[cnt].c_shdr;
391 syms = (ELF_SYM *)scn_cache[cnt].c_data;
406 size = scn_cache[shdr->sh_link].c_shdr->sh_size;
408 memcpy(symtab->strs, scn_cache[shdr->sh_link].c_data, size);
453 Elf64_Nhdr *note = (Elf64_Nhdr *)scn_cache[cnt].c_data;
465 scn_cache);
480 if (scn_cache) {
482 if (scn_cache[cnt].c_data != NULL) {
483 free(scn_cache[cnt].c_data);
486 free(scn_cache);