Lines Matching refs:Elf_Shdr
41 #undef Elf_Shdr
80 # define Elf_Shdr Elf64_Shdr macro
118 # define Elf_Shdr Elf32_Shdr macro
211 static unsigned int get_shnum(Elf_Ehdr const *ehdr, Elf_Shdr const *shdr0) in get_shnum()
219 static void set_shnum(Elf_Ehdr *ehdr, Elf_Shdr *shdr0, unsigned int new_shnum) in set_shnum()
228 static int get_shstrndx(Elf_Ehdr const *ehdr, Elf_Shdr const *shdr0) in get_shstrndx()
236 static void find_symtab(Elf_Ehdr *const ehdr, Elf_Shdr const *shdr0, in find_symtab()
240 Elf_Shdr const *relhdr; in find_symtab()
259 Elf_Shdr *const shstr, in append_func()
268 Elf_Shdr mcsec; in append_func()
275 Elf_Shdr *const shdr0 = (Elf_Shdr *)(old_shoff + (void *)ehdr); in append_func()
300 t += sizeof(Elf_Shdr) * old_shnum; in append_func()
302 sizeof(Elf_Shdr) * old_shnum) < 0) in append_func()
372 static void get_sym_str_and_relp(Elf_Shdr const *const relhdr, in get_sym_str_and_relp()
378 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in get_sym_str_and_relp()
381 Elf_Shdr const *const symsec = &shdr0[symsec_sh_link]; in get_sym_str_and_relp()
382 Elf_Shdr const *const strsec = &shdr0[w(symsec->sh_link)]; in get_sym_str_and_relp()
403 Elf_Shdr const *const relhdr, in sift_rel_mcount()
451 static int nop_mcount(Elf_Shdr const *const relhdr, in nop_mcount()
455 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in nop_mcount()
460 Elf_Shdr const *const shdr = &shdr0[w(relhdr->sh_info)]; in nop_mcount()
520 Elf_Shdr const *const symhdr, in find_secsym_ndx()
553 static char const * __has_rel_mcount(Elf_Shdr const *const relhdr, /* reltype */ in __has_rel_mcount()
554 Elf_Shdr const *const shdr0, in __has_rel_mcount()
559 Elf_Shdr const *const txthdr = &shdr0[w(relhdr->sh_info)]; in __has_rel_mcount()
573 static char const *has_rel_mcount(Elf_Shdr const *const relhdr, in has_rel_mcount()
574 Elf_Shdr const *const shdr0, in has_rel_mcount()
584 static unsigned tot_relsize(Elf_Shdr const *const shdr0, in tot_relsize()
590 Elf_Shdr const *shdrp = shdr0; in tot_relsize()
609 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in do_func()
612 Elf_Shdr *const shstr = &shdr0[get_shstrndx(ehdr, shdr0)]; in do_func()
616 Elf_Shdr const *relhdr; in do_func()