Lines Matching refs:shdr
124 GElf_Shdr shdr_mem, *shdr = gelf_getshdr (scn, &shdr_mem); in relocate_getsym() local
125 if (shdr != NULL) in relocate_getsym()
128 if ((shdr->sh_type == SHT_SYMTAB in relocate_getsym()
129 || shdr->sh_type == SHT_SYMTAB_SHNDX) in relocate_getsym()
130 && (shdr->sh_flags & SHF_COMPRESSED) != 0) in relocate_getsym()
134 switch (shdr->sh_type) in relocate_getsym()
141 cache->strtabndx = shdr->sh_link; in relocate_getsym()
221 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in resolve_symbol() local
222 if (shdr == NULL) in resolve_symbol()
230 shdr->sh_name); in resolve_symbol()
238 if ((shdr->sh_flags & SHF_COMPRESSED) != 0) in resolve_symbol()
480 Elf_Scn *scn, GElf_Shdr *shdr, in relocate_section() argument
516 const char *sname = elf_strptr (relocated, shstrndx, shdr->sh_name); in relocate_section()
523 if ((shdr->sh_flags & SHF_COMPRESSED) != 0) in relocate_section()
529 shdr = gelf_getshdr (scn, &shdr_mem); in relocate_section()
530 if (shdr == NULL) in relocate_section()
545 if (unlikely (shdr->sh_offset < ehsize in relocate_section()
556 if (unlikely ((shdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section()
557 && shdr->sh_offset < shdrs_end) in relocate_section()
571 if (unlikely ((phdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section()
572 && shdr->sh_offset < phdrs_end) in relocate_section()
587 = gelf_fsize (relocated, shdr->sh_type == SHT_REL ? ELF_T_REL : ELF_T_RELA, in relocate_section()
589 size_t nrels = shdr->sh_size / sh_entsize; in relocate_section()
591 if (shdr->sh_type == SHT_REL) in relocate_section()
666 if (shdr->sh_type == SHT_REL) in relocate_section()
693 shdr->sh_size = reldata->d_size = nrels * sh_entsize; in relocate_section()
694 gelf_update_shdr (scn, shdr); in relocate_section()
725 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in __libdwfl_relocate() local
727 if ((shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA) in __libdwfl_relocate()
728 && shdr->sh_size != 0) in __libdwfl_relocate()
732 Elf_Scn *tscn = elf_getscn (debugfile, shdr->sh_info); in __libdwfl_relocate()
737 &reloc_symtab, scn, shdr, tscn, in __libdwfl_relocate()