Lines Matching defs:_cache

469 		Cache		*_cache = &cache[seccnt];
470 Shdr *shdr = _cache->c_shdr;
471 const char *secname = _cache->c_name;
557 Cache *_cache = &cache[shndx];
558 Shdr *shdr = _cache->c_shdr;
559 uchar_t *data = (uchar_t *)(_cache->c_data->d_buf);
560 size_t datasize = _cache->c_data->d_size;
578 file, _cache ->c_name);
586 (strncmp(_cache->c_name, MSG_ORIG(MSG_SCN_FRMHDR),
594 file, EC_WORD(shndx), _cache->c_name);
611 file, _cache->c_name);
615 file, _cache->c_name, frame_ptr_enc);
634 file, _cache->c_name);
638 file, _cache->c_name, fde_cnt_enc);
661 _cache->c_name);
666 _cache->c_name, table_enc);
674 _cache->c_name, EC_WORD(tabndx));
681 _cache->c_name);
686 _cache->c_name, table_enc);
707 file, EC_WORD(shndx), _cache->c_name,
710 dump_eh_frame(file, _cache->c_name, data, datasize,
783 unwind_exception_ranges(Cache *_cache, const char *file, int do_swap)
810 Addr exc_addr = _cache->c_shdr->sh_addr;
813 ent = (exception_range_entry *)(_cache->c_data->d_buf);
814 nelts = _cache->c_data->d_size / sizeof (exception_range_entry);
838 file, _cache->c_name, EC_WORD(i));
908 Cache *_cache = &cache[cnt];
909 Shdr *shdr = _cache->c_shdr;
938 is_exrange = strncmp(_cache->c_name,
940 if ((strncmp(_cache->c_name, MSG_ORIG(MSG_SCN_FRM),
944 if (!match(MATCH_F_ALL, _cache->c_name, cnt, shdr->sh_type))
947 if ((_cache->c_data == NULL) || (_cache->c_data->d_buf == NULL))
951 dbg_print(0, MSG_INTL(MSG_ELF_SCN_UNWIND), _cache->c_name);
954 unwind_exception_ranges(_cache, file,
1047 Cache *_cache = &state->cache[symcnt];
1048 Shdr *shdr = _cache->c_shdr;
1059 if ((_cache->c_data == NULL) || (_cache->c_data->d_buf == NULL))
1062 state->shxndx.data = _cache->c_data->d_buf;
1728 Cache *_cache = &cache[cnt];
1729 Shdr *shdr = _cache->c_shdr;
1735 if (cap_section(file, cache, shnum, _cache, osabi,
1742 ccache = _cache;
1810 Cache *_cache = &cache[cnt];
1811 Shdr *shdr = _cache->c_shdr;
1822 icache = _cache;
2311 Cache *_cache = &cache[cnt];
2312 Shdr *shdr = _cache->c_shdr;
2331 (_cache->c_data == NULL) ||
2332 (_cache->c_data->d_buf == NULL))
2335 dyn = (Dyn *)_cache->c_data->d_buf;
2346 if (_cache->c_data != NULL) {
2347 versym->cache = _cache;
2348 versym->data = _cache->c_data->d_buf;
2360 if ((_cache->c_data == NULL) ||
2361 (_cache->c_data->d_buf == NULL)) {
2363 file, _cache->c_name);
2369 file, _cache->c_name,
2378 _cache->c_name, EC_WORD(shdr->sh_link));
2386 verdef_cache = _cache;
2394 verneed_cache = _cache;
2445 Cache *_cache;
2452 _cache = &cache[secndx];
2453 shdr = _cache->c_shdr;
2460 if (!match(MATCH_F_ALL, _cache->c_name, secndx, shdr->sh_type))
2631 Cache *_cache = &cache[cnt];
2632 Shdr *shdr = _cache->c_shdr;
2633 char *relname = _cache->c_name;
2661 if ((_cache->c_data == NULL) || (_cache->c_data->d_buf == NULL))
2664 rels = _cache->c_data->d_buf;
2681 dbg_print(0, MSG_INTL(MSG_ELF_SCN_RELOC), _cache->c_name);
2707 symname = relsymname(cache, _cache, strsec, symndx,
2895 Cache *_cache;
2900 _cache = symtab_cache;
2903 _cache = dynsym_cache;
2906 _cache = ldynsym_cache;
2910 if ((_cache != NULL) &&
2912 _cache, file) && (sym->st_value != dyn->d_un.d_val))
2914 file, _cache->c_name, conv_dyn_tag(dyn->d_tag,
2963 Cache *_cache = &cache[cnt];
2965 switch (_cache->c_shdr->sh_type) {
2988 if (strcmp(_cache->c_name,
2991 sec.init = _cache;
2992 } else if (strcmp(_cache->c_name,
2995 sec.fini = _cache;
3007 (_cache->c_shdr->sh_offset <
3009 sec.rel = _cache;
3015 (_cache->c_shdr->sh_offset <
3017 sec.rela = _cache;
3027 sec._sec_field = _cache; \
3068 Cache *_cache = &cache[cnt], *strsec;
3069 Shdr *shdr = _cache->c_shdr;
3084 file, _cache->c_name);
3087 if ((_cache->c_data == NULL) || (_cache->c_data->d_buf == NULL))
3091 dyn = (Dyn *)_cache->c_data->d_buf;
3106 dyn = (Dyn *)_cache->c_data->d_buf;
3109 dbg_print(0, MSG_INTL(MSG_ELF_SCN_DYNAMIC), _cache->c_name);
3188 name = string(_cache, ndx, strsec,
3195 name = string(_cache, ndx, strsec,
3447 Cache *_cache = &cache[cnt];
3448 Shdr *shdr = _cache->c_shdr;
3454 if (!match(MATCH_F_ALL, _cache->c_name, cnt, shdr->sh_type))
3462 file, _cache->c_name);
3465 if ((_cache->c_data == NULL) || (_cache->c_data->d_buf == NULL))
3468 move = (Move *)_cache->c_data->d_buf;
3482 dbg_print(0, MSG_INTL(MSG_ELF_SCN_MOVE), _cache->c_name);
3509 _cache->c_name, EC_XWORD(move->m_info));
3521 symname = relsymname(cache, _cache, strsec,
3534 _cache->c_name, EC_WORD(symndx),
3824 Cache *_cache = &cache[cnt];
3825 Shdr *shdr = _cache->c_shdr;
3830 if (!match(MATCH_F_ALL, _cache->c_name, cnt, shdr->sh_type))
3846 file, _cache->c_name);
3848 if ((_cache->c_data == NULL) || (_cache->c_data->d_buf == NULL))
3852 dbg_print(0, MSG_INTL(MSG_ELF_SCN_NOTE), _cache->c_name);
3853 note_entry(_cache, (Word *)_cache->c_data->d_buf,
3855 (Word)_cache->c_data->d_size, ehdr, file);
3877 Cache *_cache = &cache[cnt];
3878 Shdr *shdr = _cache->c_shdr;
3886 _cache->c_name) != 0) ||
3887 (_cache->c_data == NULL) ||
3888 (_cache->c_data->d_buf == NULL))
3892 pnstate.pns_cache = _cache;
3893 pnstate.pns_size = _cache->c_data->d_size;
3894 pnstate.pns_data = (Word *)_cache->c_data->d_buf;
3988 Cache *_cache = &cache[cnt];
3989 Shdr *sshdr, *hshdr = _cache->c_shdr;
3990 char *ssecname, *hsecname = _cache->c_name;
4005 if ((_cache->c_data == NULL) ||
4006 (_cache->c_data->d_buf == NULL)) {
4012 hash = (Word *)_cache->c_data->d_buf;
4021 if (_cache->c_data->d_size <
4037 _cache = &cache[hshdr->sh_link];
4038 ssecname = _cache->c_name;
4040 if ((_cache->c_data == NULL) || (_cache->c_data->d_buf == NULL))
4043 if ((syms = (Sym *)_cache->c_data->d_buf) == NULL) {
4049 sshdr = _cache->c_shdr;
4108 hash_entry(_cache, &cache[sshdr->sh_link], hsecname,
4125 hash_entry(_cache, &cache[sshdr->sh_link],
4135 _cache->c_name, EC_WORD(ndx),
4176 Cache *_cache = &cache[scnt];
4177 Shdr *shdr = _cache->c_shdr;
4186 if (!match(MATCH_F_ALL, _cache->c_name, scnt, shdr->sh_type))
4188 if ((_cache->c_data == NULL) ||
4189 ((grpdata = (Word *)_cache->c_data->d_buf) == NULL))
4204 dbg_print(0, MSG_INTL(MSG_ELF_SCN_GRP), _cache->c_name);
4213 file, _cache->c_name, EC_WORD(shdr->sh_info));
4243 grpnam = string(_cache, 0, strsec, file, sym->st_name);
4348 Cache *_cache = &cache[cnt];
4351 shdr = _cache->c_shdr;
4355 symtab = _cache;
4359 symtab = _cache;
4381 file, _cache->c_name);
4384 if ((_cache->c_data == NULL) || (_cache->c_data->d_buf == NULL))
4387 rels = _cache->c_data->d_buf;
4455 gip->g_symname = relsymname(cache, _cache,
4552 Cache *cache, *_cache;
4596 _cache = cache;
4597 _cache++;
4640 ndx++, _cache++) {
4643 _cache->c_ndx = ndx;
4644 _cache->c_scn = scn;
4646 if ((_cache->c_shdr = elf_getshdr(scn)) == NULL) {
4656 if ((_cache->c_shdr->sh_size != 0) &&
4657 (_cache->c_shdr->sh_type != SHT_NOBITS))
4663 if (names && _cache->c_shdr) {
4664 if (_cache->c_shdr->sh_name &&
4666 (nameshdr->sh_size > _cache->c_shdr->sh_name)) {
4670 secname = names + _cache->c_shdr->sh_name;
4685 _cache->c_name = secname;
4693 if ((_cache->c_name =
4701 (void) snprintf(_cache->c_name, strsz,
4714 if ((_cache->c_shdr->sh_name == 0) ||
4716 (nameshdr->sh_size <= _cache->c_shdr->sh_name)) {
4720 EC_XWORD(_cache->c_shdr->sh_name));
4732 if ((_cache->c_name = malloc(strlen(scnndxnm) + 1)) == NULL) {
4738 (void) strcpy(_cache->c_name, scnndxnm);
4762 Cache *_cache = cache + shdr_ndx_arr[ndx];
4763 Shdr *shdr = _cache->c_shdr;
4789 EC_WORD(elf_ndxscn(_cache->c_scn)),
4790 _cache->c_name, EC_OFF(bgn), EC_OFF(end),
4812 EC_WORD(elf_ndxscn(_cache->c_scn)),
4813 _cache->c_name, EC_OFF(bgn), EC_OFF(end));
4821 Cache *_cache = &cache[ndx];
4822 Elf_Scn *scn = _cache->c_scn;
4824 if ((_cache->c_data = elf_getdata(scn, NULL)) == NULL) {
4834 if ((_cache->c_shdr->sh_type == SHT_STRTAB) &&
4835 (_cache->c_data != NULL) &&
4836 (_cache->c_data->d_buf != NULL) &&
4837 (_cache->c_data->d_size > 0)) {
4838 const char *s = _cache->c_data->d_buf;
4841 (*(s + _cache->c_data->d_size - 1) != '\0'))
4843 file, _cache->c_name);
5089 Cache *_cache = &cache[ndx];
5091 if (match(MATCH_F_STRICT | MATCH_F_ALL, _cache->c_name,
5092 ndx, _cache->c_shdr->sh_type) &&
5093 _cache->c_data && _cache->c_data->d_buf) {
5094 if (write(wfd, _cache->c_data->d_buf,
5095 _cache->c_data->d_size) !=
5096 _cache->c_data->d_size) {
5125 Cache *_cache = &cache[ndx];
5127 if (!match(MATCH_F_STRICT | MATCH_F_ALL, _cache->c_name,
5128 ndx, _cache->c_shdr->sh_type))
5131 switch (_cache->c_shdr->sh_type) {
5142 if (strcmp(_cache->c_name,
5147 if (strcmp(_cache->c_name,
5157 if ((strncmp(_cache->c_name,
5160 (strncmp(_cache->c_name,