Lines Matching refs:shdr
194 update_if_changed (scn0->shdr.ELFW(e,LIBELFBITS)->sh_size, in __elfw2()
203 if (list->data[1].shdr.ELFW(e,LIBELFBITS) == NULL) in __elfw2()
211 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS); in __elfw2()
214 assert (shdr != NULL); in __elfw2()
215 ElfW2(LIBELFBITS,Word) sh_entsize = shdr->sh_entsize; in __elfw2()
216 ElfW2(LIBELFBITS,Word) sh_align = shdr->sh_addralign ?: 1; in __elfw2()
224 switch (shdr->sh_type) in __elfw2()
267 update_if_changed (shdr->sh_entsize, sh_entsize, in __elfw2()
309 > shdr->sh_size)) in __elfw2()
338 (shdr->sh_type != SHT_NOBITS in __elfw2()
339 ? shdr->sh_offset + shdr->sh_size : 0)); in __elfw2()
346 if (unlikely (! powerof2 (shdr->sh_addralign)) in __elfw2()
347 || unlikely ((shdr->sh_addralign ?: 1) < sh_align)) in __elfw2()
356 update_if_changed (shdr->sh_addralign, sh_align, in __elfw2()
361 update_if_changed (shdr->sh_offset, (GElf_Word) size, in __elfw2()
374 update_if_changed (shdr->sh_size, (GElf_Word) offset, in __elfw2()
377 if (shdr->sh_type != SHT_NOBITS) in __elfw2()
385 if (shdr->sh_entsize != 0 && shdr->sh_entsize != 1 in __elfw2()
390 if ((shdr->sh_flags & SHF_COMPRESSED) == 0) in __elfw2()
391 sh_size = shdr->sh_size; in __elfw2()
401 if (unlikely (sh_size % shdr->sh_entsize != 0)) in __elfw2()