Home | History | Annotate | Download | only in libdwfl

Lines Matching refs:mod

53 found_build_id (Dwfl_Module *mod, bool set,
60 return 1 + (mod->build_id_len == len
61 && !memcmp (bits, mod->build_id_bits, len));
70 mod->build_id_bits = memcpy (copy, bits, len);
71 mod->build_id_vaddr = vaddr;
72 mod->build_id_len = len;
79 check_notes (Dwfl_Module *mod, bool set, Elf_Data *data, GElf_Addr data_vaddr)
89 return found_build_id (mod, set,
98 __libdwfl_find_build_id (Dwfl_Module *mod, bool set, Elf *elf)
119 result = check_notes (mod, set,
124 phdr->p_vaddr + mod->main.bias);
133 result = check_notes (mod, set, elf_getdata (scn, NULL),
135 ? shdr->sh_addr + mod->main.bias : NO_VADDR);
145 __dwfl_module_build_id (Dwfl_Module *mod,
149 dwfl_module_build_id (Dwfl_Module *mod,
154 if (mod == NULL)
157 if (mod->build_id_len == 0 && mod->main.elf != NULL)
160 int result = __libdwfl_find_build_id (mod, true, mod->main.elf);
163 mod->build_id_len = -1; /* Cache negative result. */
168 if (mod->build_id_len <= 0)
171 *bits = mod->build_id_bits;
172 *vaddr = mod->build_id_vaddr;
173 return mod->build_id_len;
184 _BUG_COMPAT_dwfl_module_build_id (Dwfl_Module *mod,
187 int result = INTUSE(dwfl_module_build_id) (mod, bits, vaddr);