Lines Matching refs:shdr
129 GElf_Shdr shdr_mem, *shdr = gelf_getshdr (scn, &shdr_mem); in relocate_getsym() local
130 if (shdr != NULL) in relocate_getsym()
133 if ((shdr->sh_type == SHT_SYMTAB in relocate_getsym()
134 || shdr->sh_type == SHT_SYMTAB_SHNDX) in relocate_getsym()
135 && (shdr->sh_flags & SHF_COMPRESSED) != 0) in relocate_getsym()
139 switch (shdr->sh_type) in relocate_getsym()
146 cache->strtabndx = shdr->sh_link; in relocate_getsym()
226 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in resolve_symbol() local
227 if (shdr == NULL) in resolve_symbol()
235 shdr->sh_name); in resolve_symbol()
243 if ((shdr->sh_flags & SHF_COMPRESSED) != 0) in resolve_symbol()
502 Elf_Scn *scn, GElf_Shdr *shdr, in relocate_section() argument
538 const char *sname = elf_strptr (relocated, shstrndx, shdr->sh_name); in relocate_section()
545 if ((shdr->sh_flags & SHF_COMPRESSED) != 0) in relocate_section()
551 shdr = gelf_getshdr (scn, &shdr_mem); in relocate_section()
552 if (shdr == NULL) in relocate_section()
573 if (unlikely (shdr->sh_offset < ehsize in relocate_section()
584 if (unlikely (shdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section()
585 && shdr->sh_offset < shdrs_end)) in relocate_section()
603 if (unlikely (phdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section()
604 && shdr->sh_offset < phdrs_end)) in relocate_section()
624 = gelf_fsize (relocated, shdr->sh_type == SHT_REL ? ELF_T_REL : ELF_T_RELA, in relocate_section()
626 size_t nrels = shdr->sh_size / sh_entsize; in relocate_section()
628 if (shdr->sh_type == SHT_REL) in relocate_section()
706 if (shdr->sh_type == SHT_REL) in relocate_section()
739 shdr->sh_size = reldata->d_size = nrels * sh_entsize; in relocate_section()
740 if (unlikely (gelf_update_shdr (scn, shdr) == 0)) in relocate_section()
772 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in __libdwfl_relocate() local
773 if (unlikely (shdr == NULL)) in __libdwfl_relocate()
776 if ((shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA) in __libdwfl_relocate()
777 && shdr->sh_size != 0) in __libdwfl_relocate()
781 Elf_Scn *tscn = elf_getscn (debugfile, shdr->sh_info); in __libdwfl_relocate()
786 &reloc_symtab, scn, shdr, tscn, in __libdwfl_relocate()
816 GElf_Shdr *shdr = gelf_getshdr (relocscn, &shdr_mem); in __libdwfl_relocate_section() local
817 if (unlikely (shdr == NULL)) in __libdwfl_relocate_section()
821 relocscn, shdr, tscn, false, partial); in __libdwfl_relocate_section()