Lines Matching defs:relhdr

240 	Elf_Shdr const *relhdr;
246 for (relhdr = shdr0, k = nhdr; k; --k, ++relhdr) {
247 if (relhdr->sh_type == SHT_SYMTAB)
248 *symtab = (void *)ehdr + relhdr->sh_offset;
249 else if (relhdr->sh_type == SHT_SYMTAB_SHNDX)
250 *symtab_shndx = (void *)ehdr + relhdr->sh_offset;
372 static void get_sym_str_and_relp(Elf_Shdr const *const relhdr,
380 unsigned const symsec_sh_link = w(relhdr->sh_link);
383 Elf_Rel const *const rel0 = (Elf_Rel const *)(_w(relhdr->sh_offset)
403 Elf_Shdr const *const relhdr,
414 unsigned rel_entsize = _w(relhdr->sh_entsize);
415 unsigned const nrel = _w(relhdr->sh_size) / rel_entsize;
419 get_sym_str_and_relp(relhdr, ehdr, &sym0, &str0, &relp);
451 static int nop_mcount(Elf_Shdr const *const relhdr,
460 Elf_Shdr const *const shdr = &shdr0[w(relhdr->sh_info)];
461 unsigned rel_entsize = _w(relhdr->sh_entsize);
462 unsigned const nrel = _w(relhdr->sh_size) / rel_entsize;
467 get_sym_str_and_relp(relhdr, ehdr, &sym0, &str0, &relp);
553 static char const * __has_rel_mcount(Elf_Shdr const *const relhdr, /* reltype */
559 Elf_Shdr const *const txthdr = &shdr0[w(relhdr->sh_info)];
573 static char const *has_rel_mcount(Elf_Shdr const *const relhdr,
578 if (w(relhdr->sh_type) != SHT_REL && w(relhdr->sh_type) != SHT_RELA)
580 return __has_rel_mcount(relhdr, shdr0, shstrtab, fname);
616 Elf_Shdr const *relhdr;
654 for (relhdr = shdr0, k = nhdr; k; --k, ++relhdr) {
655 char const *const txtname = has_rel_mcount(relhdr, shdr0,
666 symsec_sh_link = w(relhdr->sh_link);
667 result = find_secsym_ndx(w(relhdr->sh_info), txtname,
675 rel_entsize = _w(relhdr->sh_entsize);
678 relhdr, ehdr, recsym, recval, reltype);
684 if (nop_mcount(relhdr, ehdr, txtname) < 0) {