• Home
  • Raw
  • Download

Lines Matching refs:relhdr

288 static void get_sym_str_and_relp(Elf_Shdr const *const relhdr,  in get_sym_str_and_relp()  argument
296 unsigned const symsec_sh_link = w(relhdr->sh_link); in get_sym_str_and_relp()
299 Elf_Rel const *const rel0 = (Elf_Rel const *)(_w(relhdr->sh_offset) in get_sym_str_and_relp()
319 Elf_Shdr const *const relhdr, in sift_rel_mcount() argument
330 unsigned rel_entsize = _w(relhdr->sh_entsize); in sift_rel_mcount()
331 unsigned const nrel = _w(relhdr->sh_size) / rel_entsize; in sift_rel_mcount()
335 get_sym_str_and_relp(relhdr, ehdr, &sym0, &str0, &relp); in sift_rel_mcount()
367 static int nop_mcount(Elf_Shdr const *const relhdr, in nop_mcount() argument
376 Elf_Shdr const *const shdr = &shdr0[w(relhdr->sh_info)]; in nop_mcount()
377 unsigned rel_entsize = _w(relhdr->sh_entsize); in nop_mcount()
378 unsigned const nrel = _w(relhdr->sh_size) / rel_entsize; in nop_mcount()
383 get_sym_str_and_relp(relhdr, ehdr, &sym0, &str0, &relp); in nop_mcount()
467 static char const * __has_rel_mcount(Elf_Shdr const *const relhdr, /* reltype */ in __has_rel_mcount() argument
473 Elf_Shdr const *const txthdr = &shdr0[w(relhdr->sh_info)]; in __has_rel_mcount()
487 static char const *has_rel_mcount(Elf_Shdr const *const relhdr, in has_rel_mcount() argument
492 if (w(relhdr->sh_type) != SHT_REL && w(relhdr->sh_type) != SHT_RELA) in has_rel_mcount()
494 return __has_rel_mcount(relhdr, shdr0, shstrtab, fname); in has_rel_mcount()
531 Elf_Shdr const *relhdr; in do_func() local
564 for (relhdr = shdr0, k = nhdr; k; --k, ++relhdr) { in do_func()
565 char const *const txtname = has_rel_mcount(relhdr, shdr0, in do_func()
576 symsec_sh_link = w(relhdr->sh_link); in do_func()
577 result = find_secsym_ndx(w(relhdr->sh_info), txtname, in do_func()
584 rel_entsize = _w(relhdr->sh_entsize); in do_func()
587 relhdr, ehdr, recsym, recval, reltype); in do_func()
593 if (nop_mcount(relhdr, ehdr, txtname) < 0) { in do_func()