Lines Matching refs:Word
124 Word shnum; /* # of sections in cache */
126 Word secndx; /* Index of symbol table section hdr */
131 Word *data; /* NULL, or extended section index */
137 Word symn; /* # of symbols */
145 Word frame_cnt; /* # .eh_frame sections seen */
146 Word frame_ndx; /* Section index of 1st .eh_frame */
147 Word hdr_cnt; /* # .eh_frame_hdr sections seen */
148 Word hdr_ndx; /* Section index of 1st .eh_frame_hdr */
198 string(Cache *refsec, Word ndx, Cache *strsec, const char *file, Word name) in string()
211 Word strn; in string()
272 relsymname(Cache *cache, Cache *csec, Cache *strsec, Word symndx, Word symnum, in relsymname()
273 Word relndx, Sym *syms, char *secstr, size_t secsz, const char *file) in relsymname()
310 stringtbl(Cache *cache, int symtab, Word ndx, Word shnum, const char *file, in stringtbl()
311 Word *symnum, Cache **symsec, Cache **strsec) in stringtbl()
396 symlookup(const char *name, Cache *cache, Word shnum, Sym **sym, in symlookup()
400 Word symn, cnt; in symlookup()
420 symn = (Word)(shdr->sh_size / shdr->sh_entsize); in symlookup()
464 sections(const char *file, Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi) in sections()
508 getphdr(Word phnum, Word *type_arr, Word type_cnt, const char *file, Elf *elf, in getphdr()
511 Word cnt, tcnt; in getphdr()
554 unwind_eh_frame(Cache *cache, Word shndx, Word shnum, Phdr *uphdr, Ehdr *ehdr, in unwind_eh_frame()
816 Word i, nelts; in unwind_exception_ranges()
910 unwind(Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, uchar_t osabi, in unwind()
913 static Word phdr_types[] = { PT_SUNW_UNWIND, PT_SUNW_EH_FRAME }; in unwind()
915 Word cnt; in unwind()
1031 init_symtbl_state(SYMTBL_STATE *state, Cache *cache, Word shnum, Word secndx, in init_symtbl_state()
1065 state->symn = (Word)(shdr->sh_size / shdr->sh_entsize); in init_symtbl_state()
1098 Word symcnt; in symbols_getxindex()
1139 output_symbol(SYMTBL_STATE *state, Word symndx, Word info, Word disp_symndx, in output_symbol()
1174 Word shndx = 0; in output_symbol()
1218 Word _shxndx; in output_symbol()
1326 Word v = sym->st_value; in output_symbol()
1378 cap_section(const char *file, Cache *cache, Word shnum, Cache *ccache, in cap_section()
1382 Word cnum, capnum, nulls, symcaps; in cap_section()
1388 Word capinfonum = 0; in cap_section()
1428 capinfonum = (Word)(cishdr->sh_size / cishdr->sh_entsize); in cap_section()
1487 capnum = (Word)(cshdr->sh_size / cshdr->sh_entsize); in cap_section()
1568 Word inum; in cap_section()
1592 Word gndx = (Word)ELF_C_GROUP(*cip); in cap_section()
1635 Word chainnum, inum; in cap_section()
1656 chainnum = (Word)(chshdr->sh_size / chshdr->sh_entsize); in cap_section()
1670 Word sndx, cndx; in cap_section()
1671 Word gndx = (Word)ELF_C_GROUP(*cip); in cap_section()
1689 cndx = (Word)ELF_C_SYM(*cip); in cap_section()
1753 cap(const char *file, Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, in cap()
1756 Word cnt; in cap()
1834 interp(const char *file, Cache *cache, Word shnum, Word phnum, Elf *elf, in interp()
1837 static Word phdr_types[] = { PT_INTERP }; in interp()
1840 Word cnt; in interp()
1912 syminfo(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) in syminfo()
1918 Word infonum, cnt, ndx, symnum, dynnum; in syminfo()
1940 infonum = (Word)(infoshdr->sh_size / infoshdr->sh_entsize); in syminfo()
2020 Word expect_dt; in syminfo()
2021 Word boundto = info->si_boundto; in syminfo()
2124 version_def(Verdef *vdf, Word vdf_num, Cache *vcache, Cache *scache, in version_def()
2127 Word cnt; in version_def()
2208 version_need(Verneed *vnd, Word vnd_num, Cache *vcache, Cache *scache, in version_need()
2211 Word cnt; in version_need()
2303 update_gnu_verndx(Verneed *vnd, Word vnd_num, VERSYM_STATE *versym) in update_gnu_verndx()
2305 Word cnt; in update_gnu_verndx()
2354 versions(Cache *cache, Word shnum, const char *file, uint_t flags, in versions()
2494 symbols(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, in symbols()
2499 Word secndx; in symbols()
2502 Word symcnt; in symbols()
2537 sunw_sort(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, in sunw_sort()
2543 Word sortsecndx, symsecndx; in sunw_sort()
2544 Word ldynsym_cnt; in sunw_sort()
2545 Word *ndx; in sunw_sort()
2546 Word ndxn; in sunw_sort()
2655 ndx = (Word *)sortcache->c_data->d_buf; in sunw_sort()
2658 Word sec_ndx = *ndx - ldynsym_cnt; in sunw_sort()
2674 reloc(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) in reloc()
2676 Word cnt; in reloc()
2679 Word type, symnum; in reloc()
2742 Word symndx, reltype; in reloc()
2824 dyn_test(dyn_test_t test_type, Word sh_type, Cache *sec_cache, Dyn *dyn, in dyn_test()
2825 Word dynsec_cnt, Ehdr *ehdr, uchar_t osabi, const char *file) in dyn_test()
2943 Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) in dyn_symtest()
2977 dynamic(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file, in dynamic()
2978 Word phnum, Elf *elf) in dynamic()
3004 Word dynsec_ndx; in dynamic()
3005 Word dynsec_num; in dynamic()
3007 Word cnt; in dynamic()
3011 static Word phdr_type[] = { PT_DYNAMIC }; in dynamic()
3518 move(Cache *cache, Word shnum, const char *file, uint_t flags) in move()
3520 Word cnt; in move()
3524 Word movenum, symnum, ndx; in move()
3570 Word symndx, shndx; in move()
3636 Word *pns_data; /* # to next unused data byte */
3639 Word pn_namesz; /* Value of note namesz field */
3640 Word pn_descsz; /* Value of note descsz field */
3641 Word pn_type; /* Value of note type field */
3666 noteoff = (Word)state->pns_cache->c_data->d_size - state->pns_size; in parse_note_entry()
3671 if (state->pns_size >= (sizeof (Word) * 3)) { in parse_note_entry()
3672 state->pns_size -= (sizeof (Word) * 3); in parse_note_entry()
3702 if ((pad = (state->pn_namesz & (sizeof (Word) - 1))) != 0) { in parse_note_entry()
3703 pad = sizeof (Word) - pad; in parse_note_entry()
3722 (sizeof (Word) - 1)) & ~(sizeof (Word) - 1); in parse_note_entry()
3724 state->pns_data = (Word *)(state->pn_name + pad); in parse_note_entry()
3732 if ((pad = (state->pn_descsz & (sizeof (Word) - 1))) != 0) { in parse_note_entry()
3733 pad = sizeof (Word) - pad; in parse_note_entry()
3742 state->pns_data = (Word *)(state->pn_desc + in parse_note_entry()
3765 note_entry(Cache *cache, Word *data, size_t size, Ehdr *ehdr, const char *file) in note_entry()
3894 static Word
3895 note(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) in note()
3897 Word cnt, note_cnt = 0; in note()
3923 if (shdr->sh_offset & (sizeof (Word) - 1)) in note()
3932 note_entry(_cache, (Word *)_cache->c_data->d_buf, in note()
3934 (Word)_cache->c_data->d_size, ehdr, file); in note()
3950 has_linux_abi_note(Cache *cache, Word shnum, const char *file) in has_linux_abi_note()
3952 Word cnt; in has_linux_abi_note()
3973 pnstate.pns_data = (Word *)_cache->c_data->d_buf; in has_linux_abi_note()
3976 Word *w; in has_linux_abi_note()
3999 w = (Word *) pnstate.pn_desc; in has_linux_abi_note()
4013 hash_entry(Cache *refsec, Cache *strsec, const char *hsecname, Word hashndx, in hash_entry()
4014 Word symndx, Word symn, Sym *syms, const char *file, ulong_t bkts, in hash_entry()
4058 hash(Cache *cache, Word shnum, const char *file, uint_t flags) in hash()
4061 Word cnt; in hash()
4062 Word ndx, bkts, nchain; in hash()
4066 Word *hash, *chain; in hash()
4071 Word symn; in hash()
4091 hash = (Word *)_cache->c_data->d_buf; in hash()
4137 symn = (Word)(sshdr->sh_size / sshdr->sh_entsize); in hash()
4166 Word _ndx, _cnt; in hash()
4229 Word _cnt; in hash()
4239 cnt += (Word)(ndx * _cnt); in hash()
4250 group(Cache *cache, Word shnum, const char *file, uint_t flags) in group()
4252 Word scnt; in group()
4257 Word *grpdata, gcnt, grpcnt, symnum, unknown; in group()
4268 ((grpdata = (Word *)_cache->c_data->d_buf) == NULL)) in group()
4270 grpcnt = shdr->sh_size / sizeof (Word); in group()
4349 got(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) in got()
4354 Word cnt, gotents, gotndx; in got()
4404 gotents = (Word)(gotshdr->sh_size / gentsize); in got()
4422 Word type, symnum; in got()
4487 Word symndx, reltype; in got()
4522 gotndx = (Word)((offset - gotbgn) / in got()
4564 if (gentsize == sizeof (Word)) in got()
4566 gotentry = (Xword)(*((Word *)(gotdata) + gotndx)); in got()
4624 size_t shnum, Cache **cache_ret, Word flags) in shdr_cache()
5039 addr_align = sizeof (Word); in regular()
5345 Word note_cnt; in regular()