Lines Matching defs:Elf_Shdr

41 #undef Elf_Shdr
80 # define Elf_Shdr Elf64_Shdr
118 # define Elf_Shdr Elf32_Shdr
211 static unsigned int get_shnum(Elf_Ehdr const *ehdr, Elf_Shdr const *shdr0)
219 static void set_shnum(Elf_Ehdr *ehdr, Elf_Shdr *shdr0, unsigned int new_shnum)
228 static int get_shstrndx(Elf_Ehdr const *ehdr, Elf_Shdr const *shdr0)
236 static void find_symtab(Elf_Ehdr *const ehdr, Elf_Shdr const *shdr0,
240 Elf_Shdr const *relhdr;
257 /* Append the new shstrtab, Elf_Shdr[], __mcount_loc and its relocations. */
259 Elf_Shdr *const shstr,
268 Elf_Shdr mcsec;
275 Elf_Shdr *const shdr0 = (Elf_Shdr *)(old_shoff + (void *)ehdr);
297 /* old(modified) Elf_Shdr table, word-byte aligned */
300 t += sizeof(Elf_Shdr) * old_shnum;
302 sizeof(Elf_Shdr) * old_shnum) < 0)
372 static void get_sym_str_and_relp(Elf_Shdr const *const relhdr,
378 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff)
381 Elf_Shdr const *const symsec = &shdr0[symsec_sh_link];
382 Elf_Shdr const *const strsec = &shdr0[w(symsec->sh_link)];
403 Elf_Shdr const *const relhdr,
451 static int nop_mcount(Elf_Shdr const *const relhdr,
455 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff)
460 Elf_Shdr const *const shdr = &shdr0[w(relhdr->sh_info)];
520 Elf_Shdr const *const symhdr,
553 static char const * __has_rel_mcount(Elf_Shdr const *const relhdr, /* reltype */
554 Elf_Shdr const *const shdr0,
559 Elf_Shdr const *const txthdr = &shdr0[w(relhdr->sh_info)];
573 static char const *has_rel_mcount(Elf_Shdr const *const relhdr,
574 Elf_Shdr const *const shdr0,
584 static unsigned tot_relsize(Elf_Shdr const *const shdr0,
590 Elf_Shdr const *shdrp = shdr0;
609 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff)
612 Elf_Shdr *const shstr = &shdr0[get_shstrndx(ehdr, shdr0)];
616 Elf_Shdr const *relhdr;