Lines Matching refs:shdr

131 	      GElf_Shdr shdr_mem, *shdr = gelf_getshdr (scn, &shdr_mem);
132 if (shdr != NULL)
135 if ((shdr->sh_type == SHT_SYMTAB
136 || shdr->sh_type == SHT_SYMTAB_SHNDX)
137 && (shdr->sh_flags & SHF_COMPRESSED) != 0)
141 switch (shdr->sh_type)
148 cache->strtabndx = shdr->sh_link;
228 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
229 if (shdr == NULL)
237 shdr->sh_name);
245 if ((shdr->sh_flags & SHF_COMPRESSED) != 0)
504 Elf_Scn *scn, GElf_Shdr *shdr,
540 const char *sname = elf_strptr (relocated, shstrndx, shdr->sh_name);
547 if ((shdr->sh_flags & SHF_COMPRESSED) != 0)
553 shdr = gelf_getshdr (scn, &shdr_mem);
554 if (shdr == NULL)
575 if (unlikely (shdr->sh_offset < ehsize
586 if (unlikely (shdrs_start < shdr->sh_offset + shdr->sh_size
587 && shdr->sh_offset < shdrs_end))
605 if (unlikely (phdrs_start < shdr->sh_offset + shdr->sh_size
606 && shdr->sh_offset < phdrs_end))
626 = gelf_fsize (relocated, shdr->sh_type == SHT_REL ? ELF_T_REL : ELF_T_RELA,
628 size_t nrels = shdr->sh_size / sh_entsize;
630 if (shdr->sh_type == SHT_REL)
708 if (shdr->sh_type == SHT_REL)
741 shdr->sh_size = reldata->d_size = nrels * sh_entsize;
742 if (unlikely (gelf_update_shdr (scn, shdr) == 0))
774 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
775 if (unlikely (shdr == NULL))
778 if ((shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA)
779 && shdr->sh_size != 0)
783 Elf_Scn *tscn = elf_getscn (debugfile, shdr->sh_info);
788 &reloc_symtab, scn, shdr, tscn,
818 GElf_Shdr *shdr = gelf_getshdr (relocscn, &shdr_mem);
819 if (unlikely (shdr == NULL))
823 relocscn, shdr, tscn, false, partial);