Lines Matching refs:Elf_Shdr

41 #undef Elf_Shdr
80 # define Elf_Shdr Elf64_Shdr macro
118 # define Elf_Shdr Elf32_Shdr macro
206 static unsigned int get_shnum(Elf_Ehdr const *ehdr, Elf_Shdr const *shdr0) in get_shnum()
214 static void set_shnum(Elf_Ehdr *ehdr, Elf_Shdr *shdr0, unsigned int new_shnum) in set_shnum()
223 static int get_shstrndx(Elf_Ehdr const *ehdr, Elf_Shdr const *shdr0) in get_shstrndx()
231 static void find_symtab(Elf_Ehdr *const ehdr, Elf_Shdr const *shdr0, in find_symtab()
235 Elf_Shdr const *relhdr; in find_symtab()
254 Elf_Shdr *const shstr, in append_func()
263 Elf_Shdr mcsec; in append_func()
270 Elf_Shdr *const shdr0 = (Elf_Shdr *)(old_shoff + (void *)ehdr); in append_func()
295 t += sizeof(Elf_Shdr) * old_shnum; in append_func()
297 sizeof(Elf_Shdr) * old_shnum) < 0) in append_func()
367 static void get_sym_str_and_relp(Elf_Shdr const *const relhdr, in get_sym_str_and_relp()
373 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in get_sym_str_and_relp()
376 Elf_Shdr const *const symsec = &shdr0[symsec_sh_link]; in get_sym_str_and_relp()
377 Elf_Shdr const *const strsec = &shdr0[w(symsec->sh_link)]; in get_sym_str_and_relp()
398 Elf_Shdr const *const relhdr, in sift_rel_mcount()
446 static int nop_mcount(Elf_Shdr const *const relhdr, in nop_mcount()
450 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in nop_mcount()
455 Elf_Shdr const *const shdr = &shdr0[w(relhdr->sh_info)]; in nop_mcount()
515 Elf_Shdr const *const symhdr, in find_secsym_ndx()
548 static char const * __has_rel_mcount(Elf_Shdr const *const relhdr, /* reltype */ in __has_rel_mcount()
549 Elf_Shdr const *const shdr0, in __has_rel_mcount()
554 Elf_Shdr const *const txthdr = &shdr0[w(relhdr->sh_info)]; in __has_rel_mcount()
568 static char const *has_rel_mcount(Elf_Shdr const *const relhdr, in has_rel_mcount()
569 Elf_Shdr const *const shdr0, in has_rel_mcount()
579 static unsigned tot_relsize(Elf_Shdr const *const shdr0, in tot_relsize()
585 Elf_Shdr const *shdrp = shdr0; in tot_relsize()
604 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in do_func()
607 Elf_Shdr *const shstr = &shdr0[get_shstrndx(ehdr, shdr0)]; in do_func()
611 Elf_Shdr const *relhdr; in do_func()