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()
390 symlookup(const char *name, Cache *cache, Word shnum, Sym **sym, in symlookup()
394 Word symn, cnt; in symlookup()
414 symn = (Word)(shdr->sh_size / shdr->sh_entsize); in symlookup()
458 sections(const char *file, Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi) in sections()
502 getphdr(Word phnum, Word *type_arr, Word type_cnt, const char *file, Elf *elf) in getphdr()
504 Word cnt, tcnt; in getphdr()
540 unwind_eh_frame(Cache *cache, Word shndx, Word shnum, Phdr *uphdr, Ehdr *ehdr, in unwind_eh_frame()
802 Word i, nelts; in unwind_exception_ranges()
859 unwind(Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, uchar_t osabi, in unwind()
862 static Word phdr_types[] = { PT_SUNW_UNWIND, PT_SUNW_EH_FRAME }; in unwind()
864 Word cnt; in unwind()
970 init_symtbl_state(SYMTBL_STATE *state, Cache *cache, Word shnum, Word secndx, in init_symtbl_state()
1003 state->symn = (Word)(shdr->sh_size / shdr->sh_entsize); in init_symtbl_state()
1036 Word symcnt; in symbols_getxindex()
1074 output_symbol(SYMTBL_STATE *state, Word symndx, Word info, Word disp_symndx, in output_symbol()
1109 Word shndx; in output_symbol()
1153 Word _shxndx; in output_symbol()
1261 Word v = sym->st_value; in output_symbol()
1313 cap_section(const char *file, Cache *cache, Word shnum, Cache *ccache, in cap_section()
1317 Word cnum, capnum, nulls, symcaps; in cap_section()
1323 Word capinfonum; in cap_section()
1363 capinfonum = (Word)(cishdr->sh_size / cishdr->sh_entsize); in cap_section()
1422 capnum = (Word)(cshdr->sh_size / cshdr->sh_entsize); in cap_section()
1503 Word inum; in cap_section()
1527 Word gndx = (Word)ELF_C_GROUP(*cip); in cap_section()
1570 Word chainnum, inum; in cap_section()
1591 chainnum = (Word)(chshdr->sh_size / chshdr->sh_entsize); in cap_section()
1605 Word sndx, cndx; in cap_section()
1606 Word gndx = (Word)ELF_C_GROUP(*cip); in cap_section()
1624 cndx = (Word)ELF_C_SYM(*cip); in cap_section()
1688 cap(const char *file, Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, in cap()
1691 Word cnt; in cap()
1771 interp(const char *file, Cache *cache, Word shnum, Word phnum, Elf *elf) in interp()
1773 static Word phdr_types[] = { PT_INTERP }; in interp()
1776 Word cnt; in interp()
1848 syminfo(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) in syminfo()
1854 Word infonum, cnt, ndx, symnum, dynnum; in syminfo()
1876 infonum = (Word)(infoshdr->sh_size / infoshdr->sh_entsize); in syminfo()
1949 Word expect_dt; in syminfo()
1950 Word boundto = info->si_boundto; in syminfo()
2053 version_def(Verdef *vdf, Word vdf_num, Cache *vcache, Cache *scache, in version_def()
2056 Word cnt; in version_def()
2137 version_need(Verneed *vnd, Word vnd_num, Cache *vcache, Cache *scache, in version_need()
2140 Word cnt; in version_need()
2232 update_gnu_verndx(Verneed *vnd, Word vnd_num, VERSYM_STATE *versym) in update_gnu_verndx()
2234 Word cnt; in update_gnu_verndx()
2283 versions(Cache *cache, Word shnum, const char *file, uint_t flags, in versions()
2421 symbols(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, in symbols()
2426 Word secndx; in symbols()
2429 Word symcnt; in symbols()
2464 sunw_sort(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, in sunw_sort()
2470 Word sortsecndx, symsecndx; in sunw_sort()
2471 Word ldynsym_cnt; in sunw_sort()
2472 Word *ndx; in sunw_sort()
2473 Word ndxn; in sunw_sort()
2582 ndx = (Word *)sortcache->c_data->d_buf; in sunw_sort()
2585 Word sec_ndx = *ndx - ldynsym_cnt; in sunw_sort()
2601 reloc(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) in reloc()
2603 Word cnt; in reloc()
2606 Word type, symnum; in reloc()
2669 Word symndx, reltype; in reloc()
2751 dyn_test(dyn_test_t test_type, Word sh_type, Cache *sec_cache, Dyn *dyn, in dyn_test()
2752 Word dynsec_cnt, Ehdr *ehdr, uchar_t osabi, const char *file) in dyn_test()
2870 Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) in dyn_symtest()
2904 dynamic(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) in dynamic()
2930 Word dynsec_ndx; in dynamic()
2931 Word dynsec_num; in dynamic()
2933 Word cnt; in dynamic()
3419 move(Cache *cache, Word shnum, const char *file, uint_t flags) in move()
3421 Word cnt; in move()
3425 Word movenum, symnum, ndx; in move()
3471 Word symndx, shndx; in move()
3537 Word *pns_data; /* # to next unused data byte */
3540 Word pn_namesz; /* Value of note namesz field */
3541 Word pn_descsz; /* Value of note descsz field */
3542 Word pn_type; /* Value of note type field */
3567 noteoff = (Word)state->pns_cache->c_data->d_size - state->pns_size; in parse_note_entry()
3572 if (state->pns_size >= (sizeof (Word) * 3)) { in parse_note_entry()
3573 state->pns_size -= (sizeof (Word) * 3); in parse_note_entry()
3603 if ((pad = (state->pn_namesz & (sizeof (Word) - 1))) != 0) { in parse_note_entry()
3604 pad = sizeof (Word) - pad; in parse_note_entry()
3623 (sizeof (Word) - 1)) & ~(sizeof (Word) - 1); in parse_note_entry()
3625 state->pns_data = (Word *)(state->pn_name + pad); in parse_note_entry()
3633 if ((pad = (state->pn_descsz & (sizeof (Word) - 1))) != 0) { in parse_note_entry()
3634 pad = sizeof (Word) - pad; in parse_note_entry()
3643 state->pns_data = (Word *)(state->pn_desc + in parse_note_entry()
3666 note_entry(Cache *cache, Word *data, size_t size, Ehdr *ehdr, const char *file) in note_entry()
3795 static Word
3796 note(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) in note()
3798 Word cnt, note_cnt = 0; in note()
3824 if (shdr->sh_offset & (sizeof (Word) - 1)) in note()
3833 note_entry(_cache, (Word *)_cache->c_data->d_buf, in note()
3835 (Word)_cache->c_data->d_size, ehdr, file); in note()
3851 has_linux_abi_note(Cache *cache, Word shnum, const char *file) in has_linux_abi_note()
3853 Word cnt; in has_linux_abi_note()
3872 pnstate.pns_data = (Word *)_cache->c_data->d_buf; in has_linux_abi_note()
3875 Word *w; in has_linux_abi_note()
3898 w = (Word *) pnstate.pn_desc; in has_linux_abi_note()
3912 hash_entry(Cache *refsec, Cache *strsec, const char *hsecname, Word hashndx, in hash_entry()
3913 Word symndx, Word symn, Sym *syms, const char *file, ulong_t bkts, in hash_entry()
3957 hash(Cache *cache, Word shnum, const char *file, uint_t flags) in hash()
3960 Word cnt; in hash()
3970 Word symn; in hash()
4014 symn = (Word)(sshdr->sh_size / sshdr->sh_entsize); in hash()
4034 Word _ndx, _cnt; in hash()
4076 Word _cnt; in hash()
4086 cnt += (Word)(ndx * _cnt); in hash()
4097 group(Cache *cache, Word shnum, const char *file, uint_t flags) in group()
4099 Word scnt; in group()
4104 Word *grpdata, gcnt, grpcnt, symnum, unknown; in group()
4115 ((grpdata = (Word *)_cache->c_data->d_buf) == NULL)) in group()
4117 grpcnt = shdr->sh_size / sizeof (Word); in group()
4196 got(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) in got()
4201 Word cnt, gotents, gotndx; in got()
4251 gotents = (Word)(gotshdr->sh_size / gentsize); in got()
4269 Word type, symnum; in got()
4334 Word symndx, reltype; in got()
4362 gotndx = (Word)((offset - gotbgn) / in got()
4404 if (gentsize == sizeof (Word)) in got()
4406 gotentry = (Xword)(*((Word *)(gotdata) + gotndx)); in got()
4464 size_t shnum, Cache **cache_ret, Word flags) in shdr_cache()
4875 addr_align = sizeof (Word); in regular()
5180 Word note_cnt; in regular()