Lines Matching refs:relhdr

274 static void get_sym_str_and_relp(Elf_Shdr const *const relhdr,  in get_sym_str_and_relp()  argument
282 unsigned const symsec_sh_link = w(relhdr->sh_link); in get_sym_str_and_relp()
285 Elf_Rel const *const rel0 = (Elf_Rel const *)(_w(relhdr->sh_offset) in get_sym_str_and_relp()
305 Elf_Shdr const *const relhdr, in sift_rel_mcount() argument
316 unsigned rel_entsize = _w(relhdr->sh_entsize); in sift_rel_mcount()
317 unsigned const nrel = _w(relhdr->sh_size) / rel_entsize; in sift_rel_mcount()
321 get_sym_str_and_relp(relhdr, ehdr, &sym0, &str0, &relp); in sift_rel_mcount()
352 static void nop_mcount(Elf_Shdr const *const relhdr, in nop_mcount() argument
361 Elf_Shdr const *const shdr = &shdr0[w(relhdr->sh_info)]; in nop_mcount()
362 unsigned rel_entsize = _w(relhdr->sh_entsize); in nop_mcount()
363 unsigned const nrel = _w(relhdr->sh_size) / rel_entsize; in nop_mcount()
368 get_sym_str_and_relp(relhdr, ehdr, &sym0, &str0, &relp); in nop_mcount()
450 __has_rel_mcount(Elf_Shdr const *const relhdr, /* is SHT_REL or SHT_RELA */ in __has_rel_mcount() argument
456 Elf_Shdr const *const txthdr = &shdr0[w(relhdr->sh_info)]; in __has_rel_mcount()
470 static char const *has_rel_mcount(Elf_Shdr const *const relhdr, in has_rel_mcount() argument
475 if (w(relhdr->sh_type) != SHT_REL && w(relhdr->sh_type) != SHT_RELA) in has_rel_mcount()
477 return __has_rel_mcount(relhdr, shdr0, shstrtab, fname); in has_rel_mcount()
510 Elf_Shdr const *relhdr; in do_func() local
525 for (relhdr = shdr0, k = nhdr; k; --k, ++relhdr) { in do_func()
526 char const *const txtname = has_rel_mcount(relhdr, shdr0, in do_func()
531 w(relhdr->sh_info), txtname, &recval, in do_func()
532 &shdr0[symsec_sh_link = w(relhdr->sh_link)], in do_func()
535 rel_entsize = _w(relhdr->sh_entsize); in do_func()
538 relhdr, ehdr, recsym, recval, reltype); in do_func()
544 nop_mcount(relhdr, ehdr, txtname); in do_func()