Lines Matching refs:_cache

459 		Cache		*_cache = &cache[seccnt];
460 Shdr *shdr = _cache->c_shdr;
461 const char *secname = _cache->c_name;
546 Cache *_cache = &cache[shndx];
547 Shdr *shdr = _cache->c_shdr;
548 uchar_t *data = (uchar_t *)(_cache->c_data->d_buf);
549 size_t datasize = _cache->c_data->d_size;
560 (strncmp(_cache->c_name, MSG_ORIG(MSG_SCN_FRMHDR),
568 file, EC_WORD(shndx), _cache->c_name);
609 _cache->c_name, EC_WORD(tabndx));
627 file, EC_WORD(shndx), _cache->c_name,
703 unwind_exception_ranges(Cache *_cache, const char *file, int do_swap)
730 Addr exc_addr = _cache->c_shdr->sh_addr;
733 ent = (exception_range_entry *)(_cache->c_data->d_buf);
734 nelts = _cache->c_data->d_size / sizeof (exception_range_entry);
759 file, _cache->c_name, EC_WORD(i));
829 Cache *_cache = &cache[cnt];
830 Shdr *shdr = _cache->c_shdr;
859 is_exrange = strncmp(_cache->c_name,
861 if ((strncmp(_cache->c_name, MSG_ORIG(MSG_SCN_FRM),
865 if (!match(MATCH_F_ALL, _cache->c_name, cnt, shdr->sh_type))
868 if (_cache->c_data == NULL)
872 dbg_print(0, MSG_INTL(MSG_ELF_SCN_UNWIND), _cache->c_name);
875 unwind_exception_ranges(_cache, file,
967 Cache *_cache = &state->cache[symcnt];
968 Shdr *shdr = _cache->c_shdr;
979 if (_cache->c_data == NULL)
982 state->shxndx.data = _cache->c_data->d_buf;
1648 Cache *_cache = &cache[cnt];
1649 Shdr *shdr = _cache->c_shdr;
1655 if (cap_section(file, cache, shnum, _cache, osabi,
1662 ccache = _cache;
1730 Cache *_cache = &cache[cnt];
1731 Shdr *shdr = _cache->c_shdr;
1742 icache = _cache;
2221 Cache *_cache = &cache[cnt];
2222 Shdr *shdr = _cache->c_shdr;
2240 (_cache->c_data == NULL))
2243 dyn = (Dyn *)_cache->c_data->d_buf;
2254 if (_cache->c_data != NULL) {
2255 versym->cache = _cache;
2256 versym->data = _cache->c_data->d_buf;
2268 if ((_cache->c_data == NULL) ||
2269 (_cache->c_data->d_buf == NULL)) {
2271 file, _cache->c_name);
2277 file, _cache->c_name,
2286 _cache->c_name, EC_WORD(shdr->sh_link));
2294 verdef_cache = _cache;
2302 verneed_cache = _cache;
2353 Cache *_cache;
2360 _cache = &cache[secndx];
2361 shdr = _cache->c_shdr;
2368 if (!match(MATCH_F_ALL, _cache->c_name, secndx, shdr->sh_type))
2539 Cache *_cache = &cache[cnt];
2540 Shdr *shdr = _cache->c_shdr;
2541 char *relname = _cache->c_name;
2569 if (_cache->c_data == NULL)
2572 rels = _cache->c_data->d_buf;
2589 dbg_print(0, MSG_INTL(MSG_ELF_SCN_RELOC), _cache->c_name);
2615 symname = relsymname(cache, _cache, strsec, symndx,
2803 Cache *_cache;
2808 _cache = symtab_cache;
2811 _cache = dynsym_cache;
2814 _cache = ldynsym_cache;
2818 if ((_cache != NULL) &&
2820 _cache, file) && (sym->st_value != dyn->d_un.d_val))
2822 file, _cache->c_name, conv_dyn_tag(dyn->d_tag,
2871 Cache *_cache = &cache[cnt];
2873 switch (_cache->c_shdr->sh_type) {
2896 if (strcmp(_cache->c_name,
2899 sec.init = _cache;
2900 } else if (strcmp(_cache->c_name,
2903 sec.fini = _cache;
2915 (_cache->c_shdr->sh_offset <
2917 sec.rel = _cache;
2923 (_cache->c_shdr->sh_offset <
2925 sec.rela = _cache;
2935 sec._sec_field = _cache; \
2976 Cache *_cache = &cache[cnt], *strsec;
2977 Shdr *shdr = _cache->c_shdr;
2992 file, _cache->c_name);
2995 if (_cache->c_data == NULL)
2999 dyn = (Dyn *)_cache->c_data->d_buf;
3014 dyn = (Dyn *)_cache->c_data->d_buf;
3017 dbg_print(0, MSG_INTL(MSG_ELF_SCN_DYNAMIC), _cache->c_name);
3096 name = string(_cache, ndx, strsec,
3103 name = string(_cache, ndx, strsec,
3355 Cache *_cache = &cache[cnt];
3356 Shdr *shdr = _cache->c_shdr;
3362 if (!match(MATCH_F_ALL, _cache->c_name, cnt, shdr->sh_type))
3370 file, _cache->c_name);
3373 if (_cache->c_data == NULL)
3376 move = (Move *)_cache->c_data->d_buf;
3390 dbg_print(0, MSG_INTL(MSG_ELF_SCN_MOVE), _cache->c_name);
3417 _cache->c_name, EC_XWORD(move->m_info));
3429 symname = relsymname(cache, _cache, strsec,
3442 _cache->c_name, EC_WORD(symndx),
3722 Cache *_cache = &cache[cnt];
3723 Shdr *shdr = _cache->c_shdr;
3728 if (!match(MATCH_F_ALL, _cache->c_name, cnt, shdr->sh_type))
3744 file, _cache->c_name);
3746 if (_cache->c_data == NULL)
3750 dbg_print(0, MSG_INTL(MSG_ELF_SCN_NOTE), _cache->c_name);
3751 note_entry(_cache, (Word *)_cache->c_data->d_buf,
3753 (Word)_cache->c_data->d_size, ehdr, file);
3775 Cache *_cache = &cache[cnt];
3776 Shdr *shdr = _cache->c_shdr;
3784 _cache->c_name) != 0) || (_cache->c_data == NULL))
3788 pnstate.pns_cache = _cache;
3789 pnstate.pns_size = _cache->c_data->d_size;
3790 pnstate.pns_data = (Word *)_cache->c_data->d_buf;
3884 Cache *_cache = &cache[cnt];
3885 Shdr *sshdr, *hshdr = _cache->c_shdr;
3886 char *ssecname, *hsecname = _cache->c_name;
3901 if (_cache->c_data == NULL)
3904 hash = (uint_t *)_cache->c_data->d_buf;
3918 _cache = &cache[hshdr->sh_link];
3919 ssecname = _cache->c_name;
3921 if (_cache->c_data == NULL)
3924 if ((syms = (Sym *)_cache->c_data->d_buf) == NULL) {
3930 sshdr = _cache->c_shdr;
3959 hash_entry(_cache, &cache[sshdr->sh_link], hsecname,
3969 hash_entry(_cache, &cache[sshdr->sh_link],
3979 _cache->c_name, EC_WORD(ndx),
4020 Cache *_cache = &cache[scnt];
4021 Shdr *shdr = _cache->c_shdr;
4030 if (!match(MATCH_F_ALL, _cache->c_name, scnt, shdr->sh_type))
4032 if ((_cache->c_data == NULL) ||
4033 ((grpdata = (Word *)_cache->c_data->d_buf) == NULL))
4048 dbg_print(0, MSG_INTL(MSG_ELF_SCN_GRP), _cache->c_name);
4057 file, _cache->c_name, EC_WORD(shdr->sh_info));
4087 grpnam = string(_cache, 0, strsec, file, sym->st_name);
4192 Cache *_cache = &cache[cnt];
4195 shdr = _cache->c_shdr;
4199 symtab = _cache;
4203 symtab = _cache;
4225 file, _cache->c_name);
4228 if (_cache->c_data == NULL)
4231 rels = _cache->c_data->d_buf;
4292 gip->g_symname = relsymname(cache, _cache,
4389 Cache *cache, *_cache;
4433 _cache = cache;
4434 _cache++;
4477 ndx++, _cache++) {
4480 _cache->c_ndx = ndx;
4481 _cache->c_scn = scn;
4483 if ((_cache->c_shdr = elf_getshdr(scn)) == NULL) {
4493 if ((_cache->c_shdr->sh_size != 0) &&
4494 (_cache->c_shdr->sh_type != SHT_NOBITS))
4500 if (names && _cache->c_shdr) {
4501 if (_cache->c_shdr->sh_name &&
4503 (nameshdr->sh_size > _cache->c_shdr->sh_name)) {
4507 secname = names + _cache->c_shdr->sh_name;
4522 _cache->c_name = secname;
4530 if ((_cache->c_name =
4538 (void) snprintf(_cache->c_name, strsz,
4551 if ((_cache->c_shdr->sh_name == 0) ||
4553 (nameshdr->sh_size <= _cache->c_shdr->sh_name)) {
4557 EC_XWORD(_cache->c_shdr->sh_name));
4569 if ((_cache->c_name = malloc(strlen(scnndxnm) + 1)) == NULL) {
4575 (void) strcpy(_cache->c_name, scnndxnm);
4599 Cache *_cache = cache + shdr_ndx_arr[ndx];
4600 Shdr *shdr = _cache->c_shdr;
4626 EC_WORD(elf_ndxscn(_cache->c_scn)),
4627 _cache->c_name, EC_OFF(bgn), EC_OFF(end),
4649 EC_WORD(elf_ndxscn(_cache->c_scn)),
4650 _cache->c_name, EC_OFF(bgn), EC_OFF(end));
4658 Cache *_cache = &cache[ndx];
4659 Elf_Scn *scn = _cache->c_scn;
4661 if ((_cache->c_data = elf_getdata(scn, NULL)) == NULL) {
4671 if ((_cache->c_shdr->sh_type == SHT_STRTAB) &&
4672 (_cache->c_data->d_buf != NULL) &&
4673 (_cache->c_data->d_size > 0)) {
4674 const char *s = _cache->c_data->d_buf;
4677 (*(s + _cache->c_data->d_size - 1) != '\0'))
4679 file, _cache->c_name);
4923 Cache *_cache = &cache[ndx];
4925 if (match(MATCH_F_STRICT | MATCH_F_ALL, _cache->c_name,
4926 ndx, _cache->c_shdr->sh_type) &&
4927 _cache->c_data && _cache->c_data->d_buf) {
4928 if (write(wfd, _cache->c_data->d_buf,
4929 _cache->c_data->d_size) !=
4930 _cache->c_data->d_size) {
4959 Cache *_cache = &cache[ndx];
4961 if (!match(MATCH_F_STRICT | MATCH_F_ALL, _cache->c_name,
4962 ndx, _cache->c_shdr->sh_type))
4965 switch (_cache->c_shdr->sh_type) {
4976 if (strcmp(_cache->c_name,
4981 if (strcmp(_cache->c_name,
4991 if ((strncmp(_cache->c_name,
4994 (strncmp(_cache->c_name,