Lines Matching refs:mod
37 __libdwfl_getsym (Dwfl_Module *mod, int ndx, GElf_Sym *sym, GElf_Addr *addr,
41 if (unlikely (mod == NULL))
44 if (unlikely (mod->symdata == NULL))
46 int result = INTUSE(dwfl_module_getsymtab) (mod);
57 int skip_aux_zero = (mod->syments > 0 && mod->aux_syments > 0) ? 1 : 0;
62 if (mod->aux_symdata == NULL
63 || ndx < mod->first_global)
67 elf = mod->symfile->elf;
68 symdata = mod->symdata;
69 symxndxdata = mod->symxndxdata;
70 symstrdata = mod->symstrdata;
72 else if (ndx < mod->first_global + mod->aux_first_global - skip_aux_zero)
75 tndx = ndx - mod->first_global + skip_aux_zero;
76 elf = mod->aux_sym.elf;
77 symdata = mod->aux_symdata;
78 symxndxdata = mod->aux_symxndxdata;
79 symstrdata = mod->aux_symstrdata;
81 else if ((size_t) ndx < mod->syments + mod->aux_first_global - skip_aux_zero)
84 tndx = ndx - mod->aux_first_global + skip_aux_zero;
85 elf = mod->symfile->elf;
86 symdata = mod->symdata;
87 symxndxdata = mod->symxndxdata;
88 symstrdata = mod->symstrdata;
93 tndx = ndx - mod->syments + skip_aux_zero;
94 elf = mod->aux_sym.elf;
95 symdata = mod->aux_symdata;
96 symxndxdata = mod->aux_symxndxdata;
97 symstrdata = mod->aux_symstrdata;
112 if ((shndxp != NULL || mod->e_type != ET_REL)
126 GElf_Addr st_value = sym->st_value & ebl_func_addr_mask (mod->ebl);
128 if (! adjust_st_value && mod->e_type != ET_REL && alloc
134 if (likely (__libdwfl_module_getebl (mod) == DWFL_E_NOERROR))
136 if (elf != mod->main.elf)
138 st_value = dwfl_adjusted_st_value (mod, elf, st_value);
139 st_value = dwfl_deadjust_st_value (mod, mod->main.elf, st_value);
142 *resolved = ebl_resolve_sym_value (mod->ebl, &st_value);
160 if (mod->e_type == ET_REL)
165 Dwfl_Error result = __libdwfl_relocate_value (mod, elf,
176 st_value = dwfl_adjusted_st_value (mod,
177 *resolved ? mod->main.elf : elf,
196 *biasp = dwfl_adjusted_st_value (mod, elf, 0);
201 dwfl_module_getsym_info (Dwfl_Module *mod, int ndx,
207 return __libdwfl_getsym (mod, ndx, sym, addr, shndxp, elfp, bias,
213 dwfl_module_getsym (Dwfl_Module *mod, int ndx,
217 return __libdwfl_getsym (mod, ndx, sym, NULL, shndxp, NULL, NULL,