Lines Matching refs:sym

80 string(Ofl_desc *ofl, Ifl_desc *ifl, Sym *sym, const char *strs, size_t strsize,  in string()  argument
84 Word name = sym->st_name; in string()
108 sym, strs, symndx, shndx, symsecname, flags); in string()
125 if ((name == 0) && (ELF_ST_BIND(sym->st_info) != STB_LOCAL)) { in string()
239 Sym *sym; in ld_sym_nodirect() local
246 sym = (Sym *)(symdata + _cnt); in ld_sym_nodirect()
247 str = (char *)(strdata + sym->st_name); in ld_sym_nodirect()
678 Sym *sym; in sym_add_spec() local
741 if ((sym = libld_calloc(1, sizeof (Sym))) == NULL) in sym_add_spec()
743 sym->st_shndx = SHN_ABS; in sym_add_spec()
744 sym->st_info = ELF_ST_INFO(STB_GLOBAL, STT_OBJECT); in sym_add_spec()
745 sym->st_size = 0; in sym_add_spec()
746 sym->st_value = 0; in sym_add_spec()
748 if ((usdp = ld_sym_enter(uname, sym, hash, (Ifl_desc *)NULL, in sym_add_spec()
1109 sym_cap_vis(const char *name, Word hash, Sym *sym, Ofl_desc *ofl) in sym_cap_vis() argument
1119 vis = ELF_ST_VISIBILITY(sym->st_other); in sym_cap_vis()
1159 Sym *sym = sdp->sd_sym; in ld_sym_adjust_vis() local
1189 sym->st_other = STV_ELIMINATE | in ld_sym_adjust_vis()
1190 (sym->st_other & ~MSK_SYM_VISIBILITY); in ld_sym_adjust_vis()
1191 } else if (ELF_ST_VISIBILITY(sym->st_other) != in ld_sym_adjust_vis()
1193 sym->st_other = STV_HIDDEN | in ld_sym_adjust_vis()
1194 (sym->st_other & ~MSK_SYM_VISIBILITY); in ld_sym_adjust_vis()
1206 if (ELF_ST_VISIBILITY(sym->st_other) == STV_DEFAULT) in ld_sym_adjust_vis()
1207 sym->st_other = STV_PROTECTED | in ld_sym_adjust_vis()
1208 (sym->st_other & ~MSK_SYM_VISIBILITY); in ld_sym_adjust_vis()
1288 Sym *sym; in ld_sym_validate() local
1423 sym = sdp->sd_sym; in ld_sym_validate()
1424 type = ELF_ST_TYPE(sym->st_info); in ld_sym_validate()
1429 if ((type == STT_TLS) && (sym->st_size != 0) && in ld_sym_validate()
1430 (sym->st_shndx != SHN_UNDEF) && in ld_sym_validate()
1431 (sym->st_shndx != SHN_COMMON)) { in ld_sym_validate()
1456 if ((vis = ELF_ST_VISIBILITY(sym->st_other)) == STV_SINGLETON) in ld_sym_validate()
1465 (sym->st_shndx == SHN_UNDEF) && in ld_sym_validate()
1466 (ELF_ST_BIND(sym->st_info) != STB_WEAK)) { in ld_sym_validate()
1520 ((sym->st_shndx == SHN_UNDEF) && in ld_sym_validate()
1521 ((ELF_ST_BIND(sym->st_info) != STB_WEAK) && in ld_sym_validate()
1620 if (sym->st_shndx == SHN_UNDEF) { in ld_sym_validate()
1653 if ((sym->st_shndx == SHN_COMMON) && in ld_sym_validate()
1661 sym->st_value) + sym->st_size; in ld_sym_validate()
1662 if (sym->st_value > bssalign) in ld_sym_validate()
1663 bssalign = sym->st_value; in ld_sym_validate()
1667 sym->st_value) + sym->st_size; in ld_sym_validate()
1668 if (sym->st_value > tlsalign) in ld_sym_validate()
1669 tlsalign = sym->st_value; in ld_sym_validate()
1681 (sym->st_shndx == SHN_X86_64_LCOMMON)) { in ld_sym_validate()
1683 lbsssize = (Xword)S_ROUND(lbsssize, sym->st_value) + in ld_sym_validate()
1684 sym->st_size; in ld_sym_validate()
1685 if (sym->st_value > lbssalign) in ld_sym_validate()
1686 lbssalign = sym->st_value; in ld_sym_validate()
1718 sym->st_name) && (st_insert(ofl->ofl_strtab, in ld_sym_validate()
1722 ((sym->st_name != 0) || in ld_sym_validate()
1729 DYNSORT_COUNT(sdp, sym, type, ++); in ld_sym_validate()
1742 DYNSORT_COUNT(sdp, sym, type, ++); in ld_sym_validate()
1760 sym->st_name) { in ld_sym_validate()
1992 Sym *sym, Word shndx) in issue_badaddr_msg() argument
2009 EC_XWORD(sym->st_value), EC_XWORD(sym->st_size)); in issue_badaddr_msg()
2071 Sym *sym = (Sym *)isc->is_indata->d_buf; in ld_sym_process() local
2176 for (sym++, ndx = 1; ndx < local; sym++, ndx++) { in ld_sym_process()
2187 if (symshndx && (sym->st_shndx == SHN_XINDEX)) { in ld_sym_process()
2189 } else if ((shndx = sym->st_shndx) >= SHN_LORESERVE) { in ld_sym_process()
2199 if ((name = string(ofl, ifl, sym, strs, strsize, ndx, in ld_sym_process()
2213 conv_sym_shndx(osabi, mach, sym->st_shndx, in ld_sym_process()
2233 rsdp = (*ld_targ.t_ms.ms_reg_find)(sym, ofl); in ld_sym_process()
2242 (rsdp, sym, name, ifl, ofl); in ld_sym_process()
2269 sdp->sd_sym = sym; in ld_sym_process()
2282 if (sym->st_shndx == SHN_SUNW_IGNORE) { in ld_sym_process()
2296 DBG_CALL(Dbg_syms_entered(ofl, sym, sdp)); in ld_sym_process()
2314 if ((sym->st_shndx != SHN_UNDEF) && in ld_sym_process()
2334 if ((type = ELF_ST_TYPE(sym->st_info)) == STT_SECTION) { in ld_sym_process()
2335 if (sym->st_shndx == SHN_UNDEF) { in ld_sym_process()
2341 sym->st_shndx, CONV_FMT_DECIMAL, in ld_sym_process()
2355 if (SYM_LOC_BADADDR(sdp, sym, type)) { in ld_sym_process()
2357 sym, shndx); in ld_sym_process()
2376 (sym->st_name == in ld_sym_process()
2402 if ((sym->st_size != 0) && ((type == STT_TLS) && in ld_sym_process()
2403 (sym->st_shndx != SHN_COMMON))) { in ld_sym_process()
2425 ((sym->st_shndx == SHN_COMMON)) || in ld_sym_process()
2427 (sym->st_shndx != SHN_ABS))) || in ld_sym_process()
2433 conv_sym_shndx(osabi, mach, sym->st_shndx, in ld_sym_process()
2452 sym->st_name) && (st_insert(ofl->ofl_strtab, in ld_sym_process()
2462 ((sym->st_name != 0) || in ld_sym_process()
2469 DYNSORT_COUNT(sdp, sym, type, ++); in ld_sym_process()
2501 sym = (Sym *)isc->is_indata->d_buf; in ld_sym_process()
2502 sym += local; in ld_sym_process()
2505 for (ndx = (int)local; ndx < total; sym++, ndx++) { in ld_sym_process()
2510 Sym *nsym = sym; in ld_sym_process()
2748 if (sym_cap_vis(name, hash, sym, ofl) && in ld_sym_process()
3202 Sym *sym; in ld_sym_add_u() local
3255 if ((sym = libld_calloc(1, sizeof (Sym))) == NULL) in ld_sym_add_u()
3257 sym->st_info = ELF_ST_INFO(STB_GLOBAL, STT_NOTYPE); in ld_sym_add_u()
3258 sym->st_shndx = SHN_UNDEF; in ld_sym_add_u()
3263 if ((sdp = ld_sym_enter(name, sym, hash, ifl, ofl, 0, SHN_UNDEF, in ld_sym_add_u()
3266 } else if (ld_sym_resolve(sdp, sym, ifl, ofl, 0, in ld_sym_add_u()