Lines Matching refs:cache

107 	Cache	*cache;		/* Pointer to cache entry for VERSYM */  member
122 Cache *cache; /* Cache of all section headers */ member
272 relsymname(Cache *cache, Cache *csec, Cache *strsec, Word symndx, Word symnum, in relsymname() argument
296 cache[sym->st_shndx].c_name); in relsymname()
310 stringtbl(Cache *cache, int symtab, Word ndx, Word shnum, const char *file, in stringtbl() argument
313 Shdr *shdr = cache[ndx].c_shdr; in stringtbl()
326 file, cache[ndx].c_name, EC_WORD(shdr->sh_link)); in stringtbl()
334 shdr = cache[ndx].c_shdr; in stringtbl()
338 file, cache[ndx].c_name); in stringtbl()
345 if ((cache[ndx].c_data == NULL) || in stringtbl()
346 (cache[ndx].c_data->d_buf == NULL)) { in stringtbl()
348 file, cache[ndx].c_name); in stringtbl()
358 *symsec = &cache[ndx]; in stringtbl()
366 file, cache[ndx].c_name, EC_WORD(shdr->sh_link)); in stringtbl()
371 *strsec = &cache[shdr->sh_link]; in stringtbl()
396 symlookup(const char *name, Cache *cache, Word shnum, Sym **sym, in symlookup() argument
439 symname = string(symtab, cnt, &cache[shdr->sh_link], file, in symlookup()
464 sections(const char *file, Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi) in sections() argument
469 Cache *_cache = &cache[seccnt]; in sections()
554 unwind_eh_frame(Cache *cache, Word shndx, Word shnum, Phdr *uphdr, Ehdr *ehdr, in unwind_eh_frame() argument
565 Cache *_cache = &cache[shndx]; in unwind_eh_frame()
577 if (strncmp(cache[cnt].c_name, MSG_ORIG(MSG_ELF_GOT), in unwind_eh_frame()
579 gotaddr = cache[cnt].c_shdr->sh_addr; in unwind_eh_frame()
736 cache[eh_state->hdr_ndx].c_name, in unwind_eh_frame()
739 cache[eh_state->frame_ndx].c_name, in unwind_eh_frame()
872 uchar_t osabi, Half mach, Cache *cache, const char *file) in check_phdr_v_shdr() argument
877 if (phdr->pfield != cache->c_shdr->sfield) { \ in check_phdr_v_shdr()
880 cache->c_ndx, \ in check_phdr_v_shdr()
881 cache->c_name, \ in check_phdr_v_shdr()
886 cache->c_shdr->sfield, \ in check_phdr_v_shdr()
910 unwind(Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, uchar_t osabi, in unwind() argument
956 Cache *_cache = &cache[cnt]; in unwind()
1011 unwind_eh_frame(cache, cnt, shnum, uphdr, ehdr, in unwind()
1031 init_symtbl_state(SYMTBL_STATE *state, Cache *cache, Word shnum, Word secndx, in init_symtbl_state() argument
1039 state->cache = cache; in init_symtbl_state()
1042 state->seccache = &cache[secndx]; in init_symtbl_state()
1081 if (versym && versym->cache && in init_symtbl_state()
1082 (versym->cache->c_shdr->sh_link == state->secndx)) in init_symtbl_state()
1102 Cache *_cache = &state->cache[symcnt]; in symbols_getxindex()
1193 &state->cache[state->seccache->c_shdr->sh_link], state->file, in output_symbol()
1214 tshdr = state->cache[shndx].c_shdr; in output_symbol()
1215 sec = state->cache[shndx].c_name; in output_symbol()
1233 tshdr = state->cache[shndx].c_shdr; in output_symbol()
1234 sec = state->cache[shndx].c_name; in output_symbol()
1378 cap_section(const char *file, Cache *cache, Word shnum, Cache *ccache, in cap_section() argument
1418 cicache = &cache[cshdr->sh_link]; in cap_section()
1439 scache = &cache[cishdr->sh_link]; in cap_section()
1449 if (!init_symtbl_state(&state, cache, shnum, in cap_section()
1472 strcache = &cache[cshdr->sh_info]; in cap_section()
1647 chcache = &cache[cishdr->sh_info]; in cap_section()
1753 cap(const char *file, Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, in cap() argument
1786 Cache *_cache = &cache[cnt]; in cap()
1793 if (cap_section(file, cache, shnum, _cache, osabi, in cap()
1834 interp(const char *file, Cache *cache, Word shnum, Word phnum, Elf *elf, in interp() argument
1862 Cache *_cache = &cache[cnt]; in interp()
1912 syminfo(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) in syminfo() argument
1923 if (cache[cnt].c_shdr->sh_type == SHT_SUNW_syminfo) { in syminfo()
1924 infocache = &cache[cnt]; in syminfo()
1965 (cache[infoshdr->sh_info].c_shdr->sh_type != SHT_DYNAMIC)) { in syminfo()
1969 dyncache = &cache[infoshdr->sh_info]; in syminfo()
2004 if (stringtbl(cache, 1, cnt, shnum, file, in syminfo()
2354 versions(Cache *cache, Word shnum, const char *file, uint_t flags, in versions() argument
2364 Cache *_cache = &cache[cnt]; in versions()
2400 versym->cache = _cache; in versions()
2473 &cache[verdef_cache->c_shdr->sh_link], file); in versions()
2486 &cache[verneed_cache->c_shdr->sh_link], file, versym); in versions()
2494 symbols(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, in symbols() argument
2505 _cache = &cache[secndx]; in symbols()
2516 if (!init_symtbl_state(&state, cache, shnum, secndx, ehdr, in symbols()
2537 sunw_sort(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, in sunw_sort() argument
2552 sortcache = &cache[sortsecndx]; in sunw_sort()
2575 symcache = &cache[sortshdr->sh_link]; in sunw_sort()
2581 if (!init_symtbl_state(&ldynsym_state, cache, shnum, in sunw_sort()
2593 symcache = &cache[symsecndx]; in sunw_sort()
2607 if (!init_symtbl_state(&dynsym_state, cache, shnum, in sunw_sort()
2674 reloc(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) in reloc() argument
2684 Cache *_cache = &cache[cnt]; in reloc()
2724 if (stringtbl(cache, 1, cnt, shnum, file, in reloc()
2760 symname = relsymname(cache, _cache, strsec, symndx, in reloc()
2943 Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) in dyn_symtest() argument
2964 symlookup(symname, cache, shnum, &sym, target_cache, in dyn_symtest()
2977 dynamic(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file, in dynamic() argument
3020 Cache *_cache = &cache[cnt]; in dynamic()
3028 (void) stringtbl(cache, 0, cnt, shnum, file, in dynamic()
3130 Cache *_cache = &cache[cnt], *strsec; in dynamic()
3141 if (stringtbl(cache, 0, cnt, shnum, file, 0, 0, &strsec) == 0) in dynamic()
3327 sec.fini, cache, shnum, ehdr, osabi, file); in dynamic()
3346 sec.init, cache, shnum, ehdr, osabi, file); in dynamic()
3518 move(Cache *cache, Word shnum, const char *file, uint_t flags) in move() argument
3526 Cache *_cache = &cache[cnt]; in move()
3554 if (stringtbl(cache, 1, cnt, shnum, file, in move()
3600 symname = relsymname(cache, _cache, strsec, in move()
3610 (cache[shndx].c_shdr)->sh_type == SHT_NOBITS))) { in move()
3765 note_entry(Cache *cache, Word *data, size_t size, Ehdr *ehdr, const char *file) in note_entry() argument
3774 pnstate.pns_cache = cache; in note_entry()
3895 note(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) in note() argument
3903 Cache *_cache = &cache[cnt]; in note()
3950 has_linux_abi_note(Cache *cache, Word shnum, const char *file) in has_linux_abi_note() argument
3956 Cache *_cache = &cache[cnt]; in has_linux_abi_note()
4058 hash(Cache *cache, Word shnum, const char *file, uint_t flags) in hash() argument
4067 Cache *_cache = &cache[cnt]; in hash()
4116 _cache = &cache[hshdr->sh_link]; in hash()
4187 hash_entry(_cache, &cache[sshdr->sh_link], hsecname, in hash()
4204 hash_entry(_cache, &cache[sshdr->sh_link], in hash()
4250 group(Cache *cache, Word shnum, const char *file, uint_t flags) in group() argument
4255 Cache *_cache = &cache[scnt]; in group()
4276 if (stringtbl(cache, 1, scnt, shnum, file, in group()
4325 grpnam = cache[sym->st_shndx].c_name; in group()
4340 name = cache[grpdata[gcnt]].c_name; in group()
4349 got(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) in got() argument
4366 if (strncmp(cache[cnt].c_name, MSG_ORIG(MSG_ELF_GOT), in got()
4368 gotcache = &cache[cnt]; in got()
4427 Cache *_cache = &cache[cnt]; in got()
4473 if (stringtbl(cache, 1, cnt, shnum, file, in got()
4534 gip->g_symname = relsymname(cache, _cache, in got()
4542 if (symlookup(MSG_ORIG(MSG_SYM_GOT), cache, shnum, &gotsym, NULL, in got()
4631 Cache *cache, *_cache; in shdr_cache() local
4667 if ((*cache_ret = cache = malloc(shnum * sizeof (Cache))) == NULL) { in shdr_cache()
4674 *cache = cache_init; in shdr_cache()
4675 _cache = cache; in shdr_cache()
4839 sort_shdr_ndx_arr_cache = cache; in shdr_cache()
4844 Cache *_cache = cache + shdr_ndx_arr[ndx]; in shdr_cache()
4861 Cache *_cache1 = cache + shdr_ndx_arr[ndx1]; in shdr_cache()
4903 Cache *_cache = &cache[ndx]; in shdr_cache()
4943 create_cache(const char *file, int fd, Elf *elf, Ehdr *ehdr, Cache **cache, in create_cache() argument
4958 if (fake_shdr_cache(file, fd, elf, ehdr, cache, shnum) == 0) in create_cache()
4962 cache, *flags) == 0) in create_cache()
4978 Cache *cache; in regular() local
5090 if (create_cache(file, fd, elf, ehdr, &cache, in regular()
5095 if (has_linux_abi_note(cache, shnum, file)) { in regular()
5156 if (create_cache(file, fd, elf, ehdr, &cache, shstrndx, in regular()
5173 Cache *_cache = &cache[ndx]; in regular()
5209 Cache *_cache = &cache[ndx]; in regular()
5312 sections(file, cache, shnum, ehdr, osabi); in regular()
5315 interp(file, cache, shnum, phnum, elf, ehdr); in regular()
5318 versions(cache, shnum, file, flags, &versym); in regular()
5321 symbols(cache, shnum, ehdr, osabi, &versym, file, flags); in regular()
5324 sunw_sort(cache, shnum, ehdr, osabi, &versym, file, flags); in regular()
5327 hash(cache, shnum, file, flags); in regular()
5330 got(cache, shnum, ehdr, file); in regular()
5333 group(cache, shnum, file, flags); in regular()
5336 syminfo(cache, shnum, ehdr, osabi, file); in regular()
5339 reloc(cache, shnum, ehdr, file); in regular()
5342 dynamic(cache, shnum, ehdr, osabi, file, phnum, elf); in regular()
5349 note_cnt = note(cache, shnum, ehdr, file); in regular()
5377 move(cache, shnum, file, flags); in regular()
5383 cap(file, cache, shnum, phnum, ehdr, osabi, elf, flags); in regular()
5387 unwind(cache, shnum, phnum, ehdr, osabi, file, elf, flags); in regular()
5393 fake_shdr_cache_free(cache, shnum); in regular()
5395 free(cache); in regular()