Lines Matching refs:Elf_Shdr
37 #undef Elf_Shdr
71 # define Elf_Shdr Elf64_Shdr macro
104 # define Elf_Shdr Elf32_Shdr macro
179 Elf_Shdr *const shstr, in append_func()
188 Elf_Shdr mcsec; in append_func()
212 t += sizeof(Elf_Shdr) * old_shnum; in append_func()
214 sizeof(Elf_Shdr) * old_shnum); in append_func()
276 static void get_sym_str_and_relp(Elf_Shdr const *const relhdr, in get_sym_str_and_relp()
282 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in get_sym_str_and_relp()
285 Elf_Shdr const *const symsec = &shdr0[symsec_sh_link]; in get_sym_str_and_relp()
286 Elf_Shdr const *const strsec = &shdr0[w(symsec->sh_link)]; in get_sym_str_and_relp()
307 Elf_Shdr const *const relhdr, in sift_rel_mcount()
354 static void nop_mcount(Elf_Shdr const *const relhdr, in nop_mcount()
358 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in nop_mcount()
363 Elf_Shdr const *const shdr = &shdr0[w(relhdr->sh_info)]; in nop_mcount()
420 Elf_Shdr const *const symhdr, in find_secsym_ndx()
452 __has_rel_mcount(Elf_Shdr const *const relhdr, /* is SHT_REL or SHT_RELA */ in __has_rel_mcount()
453 Elf_Shdr const *const shdr0, in __has_rel_mcount()
458 Elf_Shdr const *const txthdr = &shdr0[w(relhdr->sh_info)]; in __has_rel_mcount()
472 static char const *has_rel_mcount(Elf_Shdr const *const relhdr, in has_rel_mcount()
473 Elf_Shdr const *const shdr0, in has_rel_mcount()
483 static unsigned tot_relsize(Elf_Shdr const *const shdr0, in tot_relsize()
489 Elf_Shdr const *shdrp = shdr0; in tot_relsize()
505 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in do_func()
508 Elf_Shdr *const shstr = &shdr0[w2(ehdr->e_shstrndx)]; in do_func()
512 Elf_Shdr const *relhdr; in do_func()